source: trunk/templates/admin_home.tt @ 852

Last change on this file since 852 was 852, checked in by Dominic Hargreaves, 15 years ago

More cleanups after nick in admin code:

  • remove unnecessary capitalization
  • fix all links to wiki.cgi
File size: 2.4 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 style="color: #A0C745">[% completed_action %]</div>
9[% END %]
10<h2>Site Administration</h2>
11<ul>
12        <li><a href="#nodes">Nodes</a></li>
13        <li><a href="#locales">Locales</a></li>
14        <li><a href="#categories">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<a name="nodes"></a>
20<table id="nodes">
21<tr><th>Node name</th><th>Current Version</th><th>Moderation</th><th>Actions</th></tr>
22  [% FOREACH node = nodes %]
23     <tr>
24     <td class="admin_name"><a href="[% node.view_url %]">[% node.name %]</a></td>
25     <td class="admin_version">[% node.version %]</td>
26     <td class="admin_moderate">[% IF node.moderate %]yes[% ELSE %]no[% END %]</td>
27     <td class="admin_action">
28         <a href="[% node.versions_url %]">View all versions</a> or
29         <a href="[% node.moderation_url %]">Set moderation</a>
30     </td>
31     </tr>
32  [% END %]
33</table>
34
35<br /><br />
36
37<a name="locales"></a>
38<table id="locales">
39<tr><th>Locale name</th><th>Current Version</th><th>Moderation</th><th>Actions</th></tr>
40  [% FOREACH locale = locales %]
41     <tr>
42     <td class="admin_name"><a href="[% locale.view_url %]">[% locale.name %]</a></td>
43     <td class="admin_version">[% locale.version %]</td>
44     <td class="admin_moderate">[% IF node.moderate %]yes[% ELSE %]no[% END %]</td>
45     <td class="admin_action">
46        <a href="[% locale.versions_url %]">View all versions</a> or
47        <a href="[% locale.moderation_url %]">Set moderation</a>
48     </td>
49     </tr>
50  [% END %]
51</table>
52
53<br /><br />
54
55<a name="categories"></a>
56<table id="categories">
57<tr><th>Category name</th><th>Current Version</th><th>Moderation</th><th>Actions</th></tr>
58  [% FOREACH cat = categories %]
59     <tr>
60     <td class="admin_name"><a href="[% cat.view_url %]">[% cat.name %]</a></td>
61     <td class="admin_version">[% cat.version %]</td>
62     <td class="admin_moderate">[% IF node.moderate %]yes[% ELSE %]no[% END %]</td>
63     <td class="admin_action">
64         <a href="[% cat.versions_url %]">View all versions</a> or
65         <a href="[% cat.moderation_url %]">Set moderation</a>
66     </td>
67     </tr>
68  [% END %]
69</table>
70
71</div>
72[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.