1 {% extends "catalogue/base.html" %}
4 {% load pagination_tags %}
9 <script type="text/javascript" charset="utf-8">
11 $("select.filter").change(function() {
12 document.filter[this.name].value = this.value;
13 document.filter.submit();
16 $('#book-search').keypress(function(e)
20 document.filter[this.name] = this.value;
21 document.filter.submit();
29 {% block leftcolumn %}
31 <form name='filter' action=''>
32 <input type='hidden' name="title" value="{{ request.GET.title }}" />
33 <input type='hidden' name="stage" value="{{ request.GET.stage }}" />
34 <input type='hidden' name="user" value="{{ request.GET.user }}" />
37 <table id="file-list">
41 <th id='th-book-search' style='width:300px;'>
43 <input name="title" class='filter' style='width:300px;' value="{{ request.GET.title }}" />
46 <th><select name="stage" class="filter">
47 <option value=''>- {% trans "filter by stage" %} -</option>
48 <option {% if request.GET.stage == '-' %}selected="selected"
49 {% endif %}value="-">- {% trans "none" %} -</option>
50 {% for stage in stages %}
51 <option {% if request.GET.stage == stage.slug %}selected="selected"
52 {% endif %}value="{{ stage.slug }}">{{ stage.name }}</option>
56 {% if not viewed_user %}
57 <th><select name="user" class="filter">
58 <option value=''>- {% trans "filter by user" %} -</option>
59 <option {% if request.GET.user == '-' %}selected="selected"
60 {% endif %}value="-">- {% trans "none" %} -</option>
61 {% for user in users %}
62 <option {% if request.GET.user == user.username %}selected="selected"
63 {% endif %}value="{{ user.username }}">{{ user.first_name }} {{ user.last_name }} ({{ user.count }})</option>
71 {% autopaginate books 100 %}
73 <tr><td>{% trans "No books found." %}</td></tr>
75 {% for item in books %}
76 {% with item.book as book %}
78 {% ifequal item.book_length 1 %}
79 {% with item.chunks.0 as chunk %}
81 <td><a target="_blank" href="{% url catalogue_book book.slug %}">[B]</a></td>
82 <td><a href="{% url catalogue_chunk_edit book.slug chunk.slug %}">[c]</a></td>
83 <td><a target="_blank"
84 href="{% url wiki_editor book.slug %}">
85 {{ book.title }}</a></td>
86 <td>{% if chunk.stage %}
90 <td>{% if chunk.user %}<a href="{% url catalogue_user chunk.user.username %}">{{ chunk.user.first_name }} {{ chunk.user.last_name }}</a>{% endif %}</td>
95 <td><a target="_blank" href="{% url catalogue_book book.slug %}">[B]</a></td>
97 <td>{{ book.title }}</td>
99 {% for chunk in item.chunks %}
102 <td><a href="{% url catalogue_chunk_edit book.slug chunk.slug %}">[c]</a></td>
103 <td><a target="_blank" href="{{ chunk.get_absolute_url }}">
104 <span class='chunkno'>{{ chunk.number }}.</span>
105 {{ chunk.title }}</a></td>
106 <td>{% if chunk.stage %}
111 {% if not viewed_user %}
112 <td>{% if chunk.user %}
113 <a href="{% url catalogue_user chunk.user.username %}">
114 {{ chunk.user.first_name }} {{ chunk.user.last_name }}
124 <tr><td colspan="3">{% paginate %}</td></tr>
127 {% endblock leftcolumn %}
129 {% block rightcolumn %}
130 <div id="last-edited-list">
131 <h2>{% trans "Your last edited documents" %}</h2>
133 {% for slugs, item in last_books %}
134 <li><a href="{% url wiki_editor slugs.0 slugs.1 %}"
135 target="_blank">{{ item.title }}</a><br/><span class="date">({{ item.time|date:"H:i:s, d/m/Y" }})</span></li>
141 <h2>{% trans "Recent activity for" %} {{ viewed_user }}</h2>
142 {% wall viewed_user %}
144 <h2>{% trans "Recent activity" %}</h2>
147 {% endblock rightcolumn %}