Local changes.
[redakcja.git] / apps / catalogue / templates / catalogue / book_list / book.html
1 {% load i18n %}
2
3 {% if book.single %}
4     {% with book.0 as chunk %}
5     <tr>
6         <td><a href="{% url catalogue_book book.slug %}" title='{% trans "Book settings" %}'>[B]</a></td>
7         <td><a href="{% url catalogue_chunk_edit book.slug chunk.slug %}" title='{% trans "Chunk settings" %}'>[c]</a></td>
8         <td><a target="_blank"
9                     href="{% url wiki_editor book.slug %}">
10                     {{ book.title }}</a></td>
11         <td>{% if chunk.stage %}
12             {{ chunk.stage }}
13         {% else %}–
14         {% endif %}</td>
15         <td class='user-column'>{% if chunk.user %}<a href="{% url catalogue_user chunk.user.username %}">{{ chunk.user.first_name }} {{ chunk.user.last_name }}</a>{% endif %}</td>
16         <td>
17             {% if chunk.published %}P{% endif %}
18             {% if book.new_publishable %}p{% endif %}
19             {% if chunk.changed %}+{% endif %}
20         </td>
21     </tr>
22     {% endwith %}
23 {% else %}
24     <tr>
25         <td class='book-settings-link'><a href="{% url catalogue_book book.slug %}" title='{% trans "Book settings" %}'>[B]</a></td>
26         <td></td>
27         <td>{{ book.title }}</td>
28         <td></td>
29         <td class='user-column'></td>
30         <td>
31             {% if book.published %}P{% endif %}
32             {% if book.new_publishable %}p{% endif %}
33         </td>
34     </tr>
35 {% endif %}