source: trunk/templates/recent_changes.tt @ 969

Last change on this file since 969 was 969, checked in by kake, 15 years ago

Apply content_above_navbar_in_html content option to Recent Changes page as well; and add a CSS ID for the atom/RSS feeds paragraph.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1[% INCLUDE header.tt %]
2[% INCLUDE banner.tt %]
3
4<div id="content">
5
6[% IF !config.content_above_navbar_in_html %]
7  [% INCLUDE navbar.tt %]
8[% END %]
9
10<div id="maincontent">
11  <h2>Recent site changes</h2>
12  [% UNLESS since %]
13    [% content %]
14  [% END %]
15
16  [% IF last_viewed %]
17    <p><a href="[% full_cgi_url %]?action=rc;since=[% last_viewed %]">View changes since your last visit to Recent Changes</a>.</p>
18  [% ELSIF since %]
19    <p><a href="[% full_cgi_url %]?action=rc">View the regular Recent Changes page</a>.</p>
20  [% END %]
21
22  [% BLOCK changes %]
23    <table id="recentchanges_[% days %]" cellpadding="0" cellspacing="0"
24     border="0"
25     summary="Table containing the list of recent changes to this site">
26    [% FOREACH node = nodes %]
27      <tr>
28        <td class="recentchanges_node_name"><a href="[% node.url %]">[% node.name %]</a></td>
29        <td class="recentchanges_meta">
30          [% IF node.version > 1 %]
31            (<a href="[% cgi_url %]?id=[% node.name %];version=[% node.version - 1 %];diffversion=[% node.version %]">diff</a>)
32            (<a href="[% cgi_url %]?action=list_all_versions;id=[% node.name %]">history</a>)
33          [% ELSE %]
34            (new page)
35          [% END %]
36            [% node.last_modified %]
37          [% IF (node.edit_type == 'Minor tidying')%] (minor edit)[% END %]
38        </td>
39      </tr>
40      <tr>
41        <td></td>
42        <td><span class="recentchanges_user">
43          [% IF (node.username != 'Anonymous') %]
44            <a href="[% cgi_url %]?username=[% node.username %];action=userstats">[% node.username %]</a>
45          [% ELSE %]
46            <a href="[% cgi_url %]?host=[% node.host %];action=userstats">[% node.host %]</a>
47          [% END %]
48          </span> [% IF node.comment %]- [% END %]<span class="recentchanges_comment">[% node.comment %]</span>
49        </td>
50      </tr>
51    [% END %]
52    </table>
53  [% END %]
54
55[% IF since %]
56  <h2>Pages changed since [% since_string %]:</h2>
57  [% IF recent_changes.since %]
58    [% INCLUDE changes nodes = recent_changes.since days = 'since' %]
59  [% ELSE %]
60    <p>No changes made since [% since_string %].</p>
61  [% END %]
62[% ELSE %]
63
64  [% IF recent_changes.1 %]
65    <h2>Pages changed in the last 24 hours:</h2>
66    [% INCLUDE changes nodes = recent_changes.1 days = 1 %]
67  [% END %]
68
69  [% IF recent_changes.7 %]
70    <h2>Pages changed in the last week:</h2>
71    [% INCLUDE changes nodes = recent_changes.7 days = 7 %]
72  [% END %]
73
74  [% IF recent_changes.14 %]
75    <h2>Pages changed in the last fortnight:</h2>
76    [% INCLUDE changes nodes = recent_changes.14 days = 14 %]
77  [% END %]
78
79  [% IF recent_changes.30 %]
80    <h2>Pages changed in the last 30 days:</h2>
81    [% INCLUDE changes nodes = recent_changes.30 days = 30 %]
82  [% END %]
83
84[% END %]
85
86</div>
87
88[% IF config.content_above_navbar_in_html %]
89  [% INCLUDE navbar.tt %]
90[% END %]
91
92<div id="recent_changes_feeds">
93  <p>
94    This list is available as a
95    <a href="[% cgi_url %]?action=rc;format=rss">rss feed</a>
96    and as an
97    <a href="[% cgi_url %]?action=rc;format=atom">atom feed</a>.
98  </p>
99</div>
100
101[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.