source: trunk/templates/admin_home.tt

Last change on this file was 991, checked in by nick, 15 years ago

Initial code to revert a user's edits, still needs tests

File size: 2.9 KB
Line 
1[% INCLUDE header.tt page_title = "Admin - $site_name" %]
2[% INCLUDE banner.tt %]
3<div id="content">
4[% INCLUDE navbar.tt %]
5<div id="maincontent">
6[% IF completed_action %]
7        <br />
8        <div class="admin_completed_action">[% completed_action %]</div>
9[% END %]
10<h2>Site Administration</h2>
11<ul>
12        <li><a href="#nodes">Recent nodes</a></li>
13        <li><a href="#locales">Recent locales</a></li>
14        <li><a href="#categories">Recent categories</a></li>
15        <li><a href="[% cgi_url %]?action=show_needing_moderation">Pages needing moderation</a>
16        <li><a href="[% cgi_url %]?action=show_missing_metadata">Pages missing metadata</a>
17</ul>
18
19<p>The lists below show the 100 most recently modified nodes.</p>
20
21<a name="nodes"></a>
22<table id="nodes">
23<tr><th>Node name</th><th>Current Version</th><th>Last modified</th><th>By</th><th>Moderation</th><th>Actions</th></tr>
24  [% FOREACH node = nodes %]
25     <tr>
26     <td class="admin_name"><a href="[% node.view_url %]">[% node.name %]</a></td>
27     <td class="admin_version">[% node.version %]</td>
28     <td class="admin_lastmode">[% node.last_modified %]</td>
29     <td class="admin_lastmodby">
30         [% node.metadata.username.0 %]
31         <a href="[% node.revert_user_url %]">(revert all)</a>
32     </td>
33     <td class="admin_moderate">[% IF node.moderate %]yes[% ELSE %]no[% END %]</td>
34     <td class="admin_action">
35         <a href="[% node.versions_url %]">View all versions</a> or
36         <a href="[% node.moderation_url %]">Set moderation</a>
37     </td>
38     </tr>
39  [% END %]
40</table>
41
42<br /><br />
43
44<a name="locales"></a>
45<table id="locales">
46<tr><th>Locale name</th><th>Current Version</th><th>Last modified</th><th>Moderation</th><th>Actions</th></tr>
47  [% FOREACH locale = locales %]
48     <tr>
49     <td class="admin_name"><a href="[% locale.view_url %]">[% locale.name %]</a></td>
50     <td class="admin_version">[% locale.version %]</td>
51     <td class="admin_lastmode">[% locale.last_modified %]</td>
52     <td class="admin_moderate">[% IF locale.moderate %]yes[% ELSE %]no[% END %]</td>
53     <td class="admin_action">
54        <a href="[% locale.versions_url %]">View all versions</a> or
55        <a href="[% locale.moderation_url %]">Set moderation</a>
56     </td>
57     </tr>
58  [% END %]
59</table>
60
61<br /><br />
62
63<a name="categories"></a>
64<table id="categories">
65<tr><th>Category name</th><th>Current Version</th><th>Last modified</th><th>Moderation</th><th>Actions</th></tr>
66  [% FOREACH cat = categories %]
67     <tr>
68     <td class="admin_name"><a href="[% cat.view_url %]">[% cat.name %]</a></td>
69     <td class="admin_version">[% cat.version %]</td>
70     <td class="admin_lastmode">[% cat.last_modified %]</td>
71     <td class="admin_moderate">[% IF cat.moderate %]yes[% ELSE %]no[% END %]</td>
72     <td class="admin_action">
73         <a href="[% cat.versions_url %]">View all versions</a> or
74         <a href="[% cat.moderation_url %]">Set moderation</a>
75     </td>
76     </tr>
77  [% END %]
78</table>
79
80</div>
81[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.