root/tags/rel0_62/templates/recent_changes.tt

Revision 1094, 3.1 kB (checked in by dom, 19 months ago)

Display IP address in recent changes, even when edit is not anonymous
(fixes #113)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
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            (<a href="[% cgi_url %]?host=[% node.host %];action=userstats">[% node.host %]</a>)
46          [% ELSE %]
47            <a href="[% cgi_url %]?host=[% node.host %];action=userstats">[% node.host %]</a>
48          [% END %]
49          </span> [% IF node.comment %]- [% END %]<span class="recentchanges_comment">[% node.comment %]</span>
50        </td>
51      </tr>
52    [% END %]
53    </table>
54  [% END %]
55
56[% IF since %]
57  <h2>Pages changed since [% since_string %]:</h2>
58  [% IF recent_changes.since %]
59    [% INCLUDE changes nodes = recent_changes.since days = 'since' %]
60  [% ELSE %]
61    <p>No changes made since [% since_string %].</p>
62  [% END %]
63[% ELSE %]
64
65  [% IF recent_changes.1 %]
66    <h2>Pages changed in the last 24 hours:</h2>
67    [% INCLUDE changes nodes = recent_changes.1 days = 1 %]
68  [% END %]
69
70  [% IF recent_changes.7 %]
71    <h2>Pages changed in the last week:</h2>
72    [% INCLUDE changes nodes = recent_changes.7 days = 7 %]
73  [% END %]
74
75  [% IF recent_changes.14 %]
76    <h2>Pages changed in the last fortnight:</h2>
77    [% INCLUDE changes nodes = recent_changes.14 days = 14 %]
78  [% END %]
79
80  [% IF recent_changes.30 %]
81    <h2>Pages changed in the last 30 days:</h2>
82    [% INCLUDE changes nodes = recent_changes.30 days = 30 %]
83  [% END %]
84
85[% END %]
86
87</div>
88
89[% IF config.content_above_navbar_in_html %]
90  [% INCLUDE navbar.tt %]
91[% END %]
92
93<div id="recent_changes_feeds">
94  <p>
95    This list is available as a
96    <a href="[% cgi_url %]?action=rc;format=rss">rss feed</a>
97    and as an
98    <a href="[% cgi_url %]?action=rc;format=atom">atom feed</a>.
99  </p>
100</div>
101
102[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the browser.