Browse Source

Add link to task in history of tasks in user page

devel
Dmitry Novikov 8 years ago
parent
commit
deb4aa4b2b
  1. 3
      abonapp/locale/ru/LC_MESSAGES/django.po
  2. 20
      abonapp/templates/abonapp/task_log.html

3
abonapp/locale/ru/LC_MESSAGES/django.po

@ -1150,3 +1150,6 @@ msgstr "Графики"
msgid "Cancel"
msgstr "Отмена"
msgid "View"
msgstr "Открыть"

20
abonapp/templates/abonapp/task_log.html

@ -5,17 +5,21 @@
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>{% trans 'Author' %}</th>
<th>{% trans 'Recipients' %}</th>
<th>{% trans 'Comment' %}</th>
<th>{% trans 'State' %}</th>
<th>{% trans 'Type' %}</th>
<th>{% trans 'Date of make' %}</th>
<th></th>
<th class="col-sm-1">{% trans 'Author' %}</th>
<th class="col-sm-2">{% trans 'Recipients' %}</th>
<th class="col-sm-4">{% trans 'Comment' %}</th>
<th class="col-sm-2">{% trans 'State' %}</th>
<th class="col-sm-1">{% trans 'Type' %}</th>
<th class="col-sm-2">{% trans 'Date of make' %}</th>
</tr>
</thead>
<tbody>
{% for task in tasks %}
<tr>
<td class="text-center"><a href="{% url 'taskapp:edit' task.pk %}" class="btn btn-default" title="{% trans 'View' %}" data-toggle="tooltip">
<span class="glyphicon glyphicon-eye-open"></span>
</a></td>
<td><a href="{% url 'acc_app:other_profile' task.author.id %}">{{ task.author.get_short_name }}</a></td>
<td>
{% for rec in task.recipients.all %}
@ -31,13 +35,13 @@
</tr>
{% empty %}
<tr>
<td colspan="6">{% trans 'Tasks not found' %}</td>
<td colspan="7">{% trans 'Tasks not found' %}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan="6">
<td colspan="7">
{% include 'taskapp/footer_btns.html' %}
</td>
</tr>

Loading…
Cancel
Save