- </tr></thead>
-
- <tbody>
- {% autopaginate books 100 %}
- {% if not books %}
- <tr><td>{% trans "No books found." %}</td></tr>
- {% endif %}
- {% for item in books %}
- {% with item.book as book %}
-
- {% ifequal item.book_length 1 %}
- {% with item.chunks.0 as chunk %}
- <tr>
- <td><a target="_blank" href="{% url catalogue_book book.slug %}">[B]</a></td>
- <td><a href="{% url catalogue_chunk_edit book.slug chunk.slug %}">[c]</a></td>
- <td><a target="_blank"
- href="{% url wiki_editor book.slug %}">
- {{ book.title }}</a></td>
- <td>{% if chunk.stage %}
- ({{ chunk.stage }})
- {% else %}–
- {% endif %}</td>
- <td>{% if chunk.user %}<a href="{% url catalogue_user chunk.user.username %}">{{ chunk.user.first_name }} {{ chunk.user.last_name }}</a>{% endif %}</td>
- </tr>
- {% endwith %}
- {% else %}
- <tr>
- <td><a target="_blank" href="{% url catalogue_book book.slug %}">[B]</a></td>
- <td></td>
- <td>{{ book.title }}</td>
- </tr>
- {% for chunk in item.chunks %}
- <tr>
- <td></td>
- <td><a href="{% url catalogue_chunk_edit book.slug chunk.slug %}">[c]</a></td>
- <td><a target="_blank" href="{{ chunk.get_absolute_url }}">
- <span class='chunkno'>{{ chunk.number }}.</span>
- {{ chunk.comment }}</a></td>
- <td>{% if chunk.stage %}
- {{ chunk.stage }}
- {% else %}
- –
- {% endif %}</td>
- {% if not viewed_user %}
- <td>{% if chunk.user %}
- <a href="{% url catalogue_user chunk.user.username %}">
- {{ chunk.user.first_name }} {{ chunk.user.last_name }}
- </a>{% else %}
-
- {% endif %}</td>
- {% endif %}
- </td></tr>
- {% endfor %}
- {% endifequal %}
- {% endwith %}
- {% endfor %}
- <tr><td colspan="3">{% paginate %}</td></tr>
- </tbody>
- </table>
- </form>
-{% endblock leftcolumn %}