source: trunk/templates/recent_changes.tt

Last change on this file was 1368, checked in by kake, 9 years ago

Make sure IP address is always shown for anonymous edits; also, don't try to show host userstats for Auto Create.

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