1 {% extends "catalogue/base.html" %}
4 {% load pagination_tags %}
5 {% load set_get_parameter catalogue %}
9 <script type="text/javascript" charset="utf-8">
11 $("select.filter").change(function() {
12 window.location.href = this.value;
18 {% block leftcolumn %}
20 <form method="get" action="#">
21 <table id="file-list">
26 <th><select name="stage" class="filter">
27 <option value="{% set_get_parameter stage=,page= %}">- {% trans "filter by stage" %} -</option>
28 <option {% if request.GET.stage == '' %}selected="selected"
29 {% endif %}value="{% set_get_parameter stage='',page= %}">- {% trans "empty" %} -</option>
30 {% for stage in stages %}
31 <option {% if request.GET.stage == stage.slug %}selected="selected"
32 {% endif %}value="{% set_get_parameter stage=stage.slug,page= %}">{{ stage.name }}</option>
35 <th><select name="user" class="filter">
36 <option value="{% set_get_parameter user=,page= %}">- {% trans "filter by user" %} -</option>
37 <option {% if request.GET.user == '' %}selected="selected"
38 {% endif %}value="{% set_get_parameter user='',page= %}">- {% trans "empty" %} -</option>
39 {% for user in users %}
40 <option {% if request.GET.user == user.username %}selected="selected"
41 {% endif %}value="{% set_get_parameter user=user.username,page= %}">{{ user.first_name }} {{ user.last_name }} ({{ user.count }})</option>
47 {% autopaginate books 100 %}
49 <tr><td>{% trans "No books found." %}</td></tr>
51 {% for item in books %}
52 {% with item.book as book %}
54 {% ifequal item.book_length 1 %}
55 {% with item.chunks.0 as chunk %}
57 <td><a target="_blank" href="{% url catalogue_book book.slug %}">[B]</a></td>
58 <td><a href="{% url catalogue_chunk_edit book.slug chunk.slug %}">[c]</a></td>
59 <td><a target="_blank"
60 href="{% url wiki_editor book.slug %}">
61 {{ book.title }}</a></td>
62 <td>{% if chunk.stage %}
65 <td>{% if chunk.user %}{{ chunk.user.first_name }} {{ chunk.user.last_name }}{% endif %}</td>
70 <td><a target="_blank" href="{% url catalogue_book book.slug %}">[B]</a></td>
72 <td>{{ book.title }}</td>
74 {% for chunk in item.chunks %}
77 <td><a href="{% url catalogue_chunk_edit book.slug chunk.slug %}">[c]</a></td>
78 <td><a target="_blank" href="{{ chunk.get_absolute_url }}">
79 <span class='chunkno'>{{ chunk.number }}.</span>
80 {{ chunk.comment }}</a></td>
81 <td>({{ chunk.stage }})</td>
82 <td>{% if chunk.user %}<a href="{% url catalogue_user chunk.user.username %}">{{ chunk.user.first_name }} {{ chunk.user.last_name }}</a>{% endif %}</td>
88 <tr><td colspan="3">{% paginate %}</td></tr>
92 {% endblock leftcolumn %}
94 {% block rightcolumn %}
95 <div id="last-edited-list">
96 <h2>{% trans "Your last edited documents" %}</h2>
98 {% for slugs, item in last_books %}
99 <li><a href="{% url wiki_editor slugs.0 slugs.1 %}"
100 target="_blank">{{ item.title }}</a><br/><span class="date">({{ item.time|date:"H:i:s, d/m/Y" }})</span></li>
105 <h2>{% trans "Recent activity" %}</h2>
107 {% endblock rightcolumn %}