3ad8a65af54876e9e129550ecd7317a518b4304e
[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 target="_blank"
8                     href="{% url 'wiki_editor' book.slug %}">
9                     {{ book.title }}</a></td>
10         <td>{% if chunk.stage %}
11             {{ chunk.stage }}
12         {% else %}–
13         {% endif %}</td>
14         <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>
15         <td>{{ book.project.name }}</td>
16         <td><a href="{% url 'catalogue_book_gallery' book.slug %}">Materiały</a></td>
17     </tr>
18     {% endwith %}
19 {% else %}
20     <tr>
21         <td><input type="checkbox" name="select_book" value="{{book.id}}"/></td>
22         <td>{{ book.title }}</td>
23         <td></td>
24         <td class='user-column'></td>
25         <td>{{ book.project.name }}</td>
26         <td></td>
27     </tr>
28 {% endif %}