source: trunk/templates/recent_changes.tt @ 811

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

Microformat fun - support hCard, hReview and geo microformats where possible

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