comparison MoinMoin/apps/admin/templates/admin/trash.html @ 2274:980b4f225f13

Moved trash view under admin.
author Ashutosh Singla <ashu1461@gmail.com>
date Sat, 14 Sep 2013 04:39:15 +0530
parents
children e615e3bbe48d
comparison
equal deleted inserted replaced
2273:a8e67947f130 2274:980b4f225f13
1 {% extends theme("layout.html") %}
2 {% import "utils.html" as utils %}
3 {% block content %}
4 {% if headline %}
5 <h1>{{ headline }}</h1>
6 {% endif %}
7 Total: {{ results|count }}
8 {% if results %}
9 <table class="zebra">
10 <thead>
11 <tr>
12 <th>{{ _("Old Name") }}</th>
13 <th>{{ _("Rev.") }}</th>
14 <th>{{ _("Timestamp") }}</th>
15 <th>{{ _("Editor") }}</th>
16 <th>{{ _("Comment") }}</th>
17 <th colspan="3">{{ _("Actions") }}</th>
18 </tr>
19 </thead>
20 <tbody>
21 {% for result in results| sort(attribute='mtime', reverse=True)%}
22 <tr>
23 <td class="moin-wordbreak">{{ result.oldname|join(' | ') }}</td>
24 <td>{{ result.revid | shorten_id }}</td>
25 <td>{{ result.mtime|datetimeformat }}</td>
26 <td class="moin-wordbreak">{{ utils.show_editor_info(result.editor) }}</td>
27 <td class="moin-wordbreak">{{ result.comment }}</td>
28 <td><a href="{{ url_for('frontend.show_item', item_name=result.fqname) }}">{{ _('show') }}</a></td>
29 {% if user.may.write(result.fqname) -%}
30 <td><a href="{{ url_for('frontend.show_item', item_name=result.fqname) }}">{{ _('History') }}</a></td>
31 <td><a href="{{ url_for('frontend.destroy_item', item_name=result.fqname) }}">{{ _('Destroy') }}</a></td>
32 {%- endif %}
33 </tr>
34 {% endfor %}
35 </tbody>
36 </table>
37 {% endif %}
38 {% endblock %}