assigning tickets, new ui
[redakcja.git] / apps / wiki / templates / wiki / document_list_item.html
1 <tr>
2     <td colspan="3">
3         <a target="_blank" data-id="{{ book.slug }}"
4         href="{% url wiki_book book.slug %}">[?]</a>
5         {% ifequal book.chunk_set.count 1 %}
6             <a target="_blank" data-id="{{ book.slug }}"
7                     href="{% url wiki_editor book.slug %}">
8                     {{ book.title }}</a>
9         {% else %}
10             {{ book.title }}
11             <div class="chunk-list">
12             {% for chunk in book %}
13                 <a target="_blank" data-id="{{ book.slug }}"
14                     href="{{ chunk.get_absolute_url }}">
15                     <span class='chunkno'>{{ forloop.counter }}.</span>
16                     {{ chunk.comment }}</a><br/>
17             {% endfor %}
18             </div>
19         {% endifequal %}
20     </td>
21 </tr>