fix thumbnail issues + some cleanup
[redakcja.git] / apps / catalogue / templates / catalogue / book_list / book.html
1 {% load i18n %}
2
3     <tr>
4         <td><a href="{% url 'catalogue_html' book.pk %}">{{ book.meta.title }}</a></td>
5         <td>
6             {% if book.owner_user %}
7                 {{ book.owner_user.get_full_name }}
8             {% else %}
9                 <a href="{{ book.owner_organization.get_absolute_url }}">{{ book.owner_organization }}</a>
10             {% endif %}
11             {% if am_owner %}
12                 <a href="{% url 'catalogue_book_owner' book.pk %}">({% trans "change" %})</a>
13             {% endif %}
14             </td>
15         <td>{{ book.stage|default:"–" }}</td>
16         <td class="{% if book.is_overdue %}alert-danger{% endif %}">{% if book.assigned_to %}{{ book.assigned_to.get_full_name }}{% endif %}</td>
17         <td class="{% if book.is_overdue %}alert-danger{% endif %}">{{ book.get_plan.deadline|default:"–" }}</td>
18         <td>
19             {% if am_owner %}
20                 <div class="btn-group-vertical">
21                     <a class="btn btn-default" href="{% url 'wiki_editor' book.pk %}">{% trans "Edit" %}</a>
22                     <a class="btn btn-default" href="{% url 'catalogue_book_schedule' book.pk %}">{% trans "Schedule" %}</a>
23                     <a class="btn btn-default" href="{% url 'catalogue_book_delete' book.pk %}">{% trans "Delete" %}</a>
24                 </div>
25             {% endif %}
26         </td>
27     </tr>