658d009cefead5b7236a99b00ccc28a672b551b1
[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><input type="checkbox" name="select_book" value="{{book.id}}" data-chunk-id="{{chunk.id}}"/></td>
7         <td><a href="{% url 'catalogue_book' book.slug %}" title='{% trans "Book settings" %}'>[B]</a></td>
8         <td><a href="{% url 'catalogue_chunk_edit' book.slug chunk.slug %}" title='{% trans "Chunk settings" %}'>[c]</a></td>
9         <td><a target="_blank"
10                     href="{% url 'wiki_editor' book.slug %}">
11                     {{ book.title }}</a></td>
12         <td>{% if chunk.stage %}
13             {{ chunk.stage }}
14         {% else %}–
15         {% endif %}</td>
16         <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>
17         <td>
18             {% if chunk.published %}P{% endif %}
19             {% if book.new_publishable %}p{% endif %}
20             {% if chunk.changed %}+{% endif %}
21         </td>
22     </tr>
23     {% endwith %}
24 {% else %}
25     <tr>
26         <td><input type="checkbox" name="select_book" value="{{book.id}}"/></td>
27         <td class='book-settings-link'><a href="{% url 'catalogue_book' book.slug %}" title='{% trans "Book settings" %}'>[B]</a></td>
28         <td></td>
29         <td>{{ book.title }}</td>
30         <td></td>
31         <td class='user-column'></td>
32         <td>
33             {% if book.published %}P{% endif %}
34             {% if book.new_publishable %}p{% endif %}
35         </td>
36     </tr>
37 {% endif %}