2 {% load username from common_tags %}
5 {% with chunk as chunk %}
7 <td><input type="checkbox" name="select_book" value="{{book.id}}" data-chunk-id="{{chunk.id}}"/></td>
8 <td><a class="btn btn-sm btn-secondary" href="{% url 'catalogue_book' book.slug %}"><small>{% trans "Book settings" %}</small></a></td>
9 <td><a class="btn btn-sm btn-secondary" href="{% url 'catalogue_chunk_edit' book.slug chunk.slug %}"><small>{% trans "Chunk settings" %}</small></a></td>
10 <td><a class="btn btn-primary" target="_blank"
11 href="{% url 'wiki_editor' book.slug %}">
13 {{ book.title }}</a></td>
14 <td>{% if chunk.stage %}
18 <td class='user-column'>{% if chunk.user %}<a href="{% url 'catalogue_user' chunk.user.username %}">{{ chunk.user|username }}</a>{% endif %}</td>
20 {% if chunk.published %}
21 <div><small>{% trans "published" %}</small></div>
23 {% if book.new_publishable %}
24 <div><small>{% trans "publishable" %}</small></div>
26 {% if chunk.changed %}
27 <div><small>{% trans "changed" %}</small></div>
30 <td>{{ book.project.name }}</td>
35 <td><input type="checkbox" name="select_book" value="{{book.id}}"/></td>
36 <td><a class='btn btn-sm btn-secondary' href="{% url 'catalogue_book' book.slug %}"><small>{% trans "Book settings" %}</small></a></td>
38 <td>{{ book.title }}</td>
40 <td class='user-column'></td>
42 {% if book.published %}
43 <div><small>{% trans "published" %}</small></div>
45 {% if book.new_publishable %}
46 <div><small>{% trans "publishable" %}</small></div>
49 <td>{{ book.project.name }}</td>