source: trunk/templates/admin_home.tt @ 822

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

Start on the admin interface

File size: 1.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<h2>Site Administration</h2>
7<ul>
8        <li><a href="#nodes">Nodes</a></li>
9        <li><a href="#locales">Locales</a></li>
10        <li><a href="#categories">Categories</a></li>
11</ul>
12
13<a name="nodes"></a>
14<table id="nodes">
15<tr><th>Node name</th><th>Current Version</th><th>Moderation</th><th>Actions</th></tr>
16  [% FOREACH node = nodes %]
17     <tr>
18     <td><a href="[% node.view_url %]">[% node.name %]</a></td>
19     <td>[% node.version %]</td>
20     <td>[% node.moderate %]</td>
21     <td><a href="[% node.view_url %]">View</a> or
22                 <a href="[% node.versions_url %]">View all versions</a> or
23                 <a href="[% node.moderation_url %]">Set Moderation</a>
24     </td>
25     </tr>
26  [% END %]
27</table>
28
29<br /><br />
30
31<a name="locales"></a>
32<table id="locales">
33<tr><th>Locale name</th><th>Current Version</th><th>Moderation</th><th>Actions</th></tr>
34  [% FOREACH locale = locales %]
35     <tr>
36     <td><a href="[% locale.view_url %]">[% locale.name %]</a></td>
37     <td>[% locale.version %]</td>
38     <td>[% locale.moderate %]</td>
39     <td><a href="[% locale.view_url %]">View</a> or
40                 <a href="[% locale.versions_url %]">View all versions</a> or
41                 <a href="[% locale.moderation_url %]">Set Moderation</a>
42     </td>
43     </tr>
44  [% END %]
45</table>
46
47<br /><br />
48
49<a name="categories"></a>
50<table id="categories">
51<tr><th>Category name</th><th>Current Version</th><th>Moderation</th><th>Actions</th></tr>
52  [% FOREACH cat = categories %]
53     <tr>
54     <td><a href="[% cat.view_url %]">[% cat.name %]</a></td>
55     <td>[% cat.version %]</td>
56     <td>[% cat.moderate %]</td>
57     <td><a href="[% cat.view_url %]">View</a> or
58                 <a href="[% cat.versions_url %]">View all versions</a> or
59                 <a href="[% cat.moderation_url %]">Set Moderation</a>
60     </td>
61     </tr>
62  [% END %]
63</table>
64
65</div>
66[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.