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-outline-secondary" href="{% url 'catalogue_book' book.slug %}" title="{% trans "Book settings" %}">📕</a></td>
9 <td><a class="btn btn-sm btn-outline-secondary" href="{% url 'catalogue_chunk_edit' book.slug chunk.slug %}" title="{% trans "Chunk settings" %}">📜</a></td>
10 <td><a class="btn btn-primary" target="_blank"
11 href="{% url 'wiki_editor' book.slug %}">
12 {{ book.title }}</a></td>
13 <td>{% if chunk.stage %}
17 <td class='user-column'>{% if chunk.user %}<a href="{% url 'catalogue_user' chunk.user.username %}">{{ chunk.user|username }}</a>{% endif %}</td>
19 {% if book.published %}
20 <span class="badge badge-info" title="{% trans "published" %}">opubl.</span>
22 {% if book.new_publishable %}
23 <span class="badge badge-primary" title="{% trans "publishable" %}">do publ.</span>
25 {% if chunk.changed %}
26 <span class="badge badge-warning title="{% trans "changed" %}">zmiany</span>
29 <td>{{ book.project.name }}</td>
34 <td><input type="checkbox" name="select_book" value="{{book.id}}"/></td>
35 <td><a class='btn btn-sm btn-outline-secondary' href="{% url 'catalogue_book' book.slug %}" title="{% trans "Book settings" %}">📕</a></td>
37 <td>{{ book.title }}</td>
39 <td class='user-column'></td>
41 {% if book.published %}
42 <span class="badge badge-info" title="{% trans "published" %}">opubl.</span>
44 {% if book.new_publishable %}
45 <span class="badge badge-info" title="{% trans "publishable" %}">do publ.</span>
48 <td>{{ book.project.name }}</td>