Rearrange source to src dir.
[redakcja.git] / src / catalogue / templates / catalogue / book_list / book.html
1 {% load i18n %}
2 {% load username from common_tags %}
3
4 {% if book.single %}
5     {% with book.0 as chunk %}
6     <tr>
7         <td><input type="checkbox" name="select_book" value="{{book.id}}" data-chunk-id="{{chunk.id}}"/></td>
8         <td><a href="{% url 'catalogue_book' book.slug %}" title='{% trans "Book settings" %}'>[B]</a></td>
9         <td><a href="{% url 'catalogue_chunk_edit' book.slug chunk.slug %}" title='{% trans "Chunk settings" %}'>[c]</a></td>
10         <td><a target="_blank"
11                     href="{% url 'wiki_editor' book.slug %}">
12                     {{ book.title }}</a></td>
13         <td>{% if chunk.stage %}
14             {{ chunk.stage }}
15         {% else %}–
16         {% endif %}</td>
17         <td class='user-column'>{% if chunk.user %}<a href="{% url 'catalogue_user' chunk.user.username %}">{{ chunk.user|username }}</a>{% endif %}</td>
18         <td>
19             {% if chunk.published %}P{% endif %}
20             {% if book.new_publishable %}p{% endif %}
21             {% if chunk.changed %}+{% endif %}
22         </td>
23         <td>{{ book.project.name }}</td>
24     </tr>
25     {% endwith %}
26 {% else %}
27     <tr>
28         <td><input type="checkbox" name="select_book" value="{{book.id}}"/></td>
29         <td class='book-settings-link'><a href="{% url 'catalogue_book' book.slug %}" title='{% trans "Book settings" %}'>[B]</a></td>
30         <td></td>
31         <td>{{ book.title }}</td>
32         <td></td>
33         <td class='user-column'></td>
34         <td>
35             {% if book.published %}P{% endif %}
36             {% if book.new_publishable %}p{% endif %}
37         </td>
38         <td>{{ book.project.name }}</td>
39     </tr>
40 {% endif %}