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