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>
36 {% if not viewed_user %}
37 <th><select name="user" class="filter">
38 <option value="{% set_get_parameter user=,page= %}">- {% trans "filter by user" %} -</option>
39 <option {% if request.GET.user == '' %}selected="selected"
40 {% endif %}value="{% set_get_parameter user='',page= %}">- {% trans "empty" %} -</option>
41 {% for user in users %}
42 <option {% if request.GET.user == user.username %}selected="selected"
43 {% endif %}value="{% set_get_parameter user=user.username,page= %}">{{ user.first_name }} {{ user.last_name }} ({{ user.count }})</option>
51 {% autopaginate books 100 %}
53 <tr><td>{% trans "No books found." %}</td></tr>
55 {% for item in books %}
56 {% with item.book as book %}
58 {% ifequal item.book_length 1 %}
59 {% with item.chunks.0 as chunk %}
61 <td><a target="_blank" href="{% url catalogue_book book.slug %}">[B]</a></td>
62 <td><a href="{% url catalogue_chunk_edit book.slug chunk.slug %}">[c]</a></td>
63 <td><a target="_blank"
64 href="{% url wiki_editor book.slug %}">
65 {{ book.title }}</a></td>
66 <td>{% if chunk.stage %}
70 <td>{% if chunk.user %}<a href="{% url catalogue_user chunk.user.username %}">{{ chunk.user.first_name }} {{ chunk.user.last_name }}</a>{% endif %}</td>
75 <td><a target="_blank" href="{% url catalogue_book book.slug %}">[B]</a></td>
77 <td>{{ book.title }}</td>
79 {% for chunk in item.chunks %}
82 <td><a href="{% url catalogue_chunk_edit book.slug chunk.slug %}">[c]</a></td>
83 <td><a target="_blank" href="{{ chunk.get_absolute_url }}">
84 <span class='chunkno'>{{ chunk.number }}.</span>
85 {{ chunk.comment }}</a></td>
86 <td>{% if chunk.stage %}
91 {% if not viewed_user %}
92 <td>{% if chunk.user %}
93 <a href="{% url catalogue_user chunk.user.username %}">
94 {{ chunk.user.first_name }} {{ chunk.user.last_name }}
104 <tr><td colspan="3">{% paginate %}</td></tr>
108 {% endblock leftcolumn %}
110 {% block rightcolumn %}
111 <div id="last-edited-list">
112 <h2>{% trans "Your last edited documents" %}</h2>
114 {% for slugs, item in last_books %}
115 <li><a href="{% url wiki_editor slugs.0 slugs.1 %}"
116 target="_blank">{{ item.title }}</a><br/><span class="date">({{ item.time|date:"H:i:s, d/m/Y" }})</span></li>
122 <h2>{% trans "Recent activity for" %} {{ viewed_user }}</h2>
123 {% wall viewed_user %}
125 <h2>{% trans "Recent activity" %}</h2>
128 {% endblock rightcolumn %}