source: trunk/templates/recent_changes.tt @ 701

Last change on this file since 701 was 701, checked in by Earle Martin, 16 years ago

replace "?RecentChanges" with "action=rc"

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
RevLine 
[2]1[% INCLUDE header.tt %]
[288]2[% INCLUDE banner.tt %]
[423]3
[185]4<div id="content">
[617]5[% INCLUDE navbar.tt %]
6<div id="maincontent">
[471]7  <h2>Recent site changes</h2>
[473]8  [% UNLESS since %]
9    [% content %]
10  [% END %]
[471]11
[473]12  [% IF last_viewed %]
[701]13    <p><a href="[% full_cgi_url %]?action=rc;since=[% last_viewed %]">View changes since your last visit to Recent Changes</a>.</p>
[473]14  [% ELSIF since %]
[701]15    <p><a href="[% full_cgi_url %]?action=rc">View the regular Recent Changes page</a>.</p>
[473]16  [% END %]
17
[471]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 %]
[423]23      <tr>
[443]24        <td class="recentchanges_node_name"><a href="[% node.url %]">[% node.name %]</a></td>
25        <td class="recentchanges_meta">
[444]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 %]
[474]30            (new page)
[444]31          [% END %]
32            [% node.last_modified %]
[443]33          [% IF (node.edit_type == 'Minor tidying')%] (minor edit)[% END %]
[423]34        </td>
[443]35      </tr>
36      <tr>
37        <td></td>
38        <td><span class="recentchanges_user">
[423]39          [% IF (node.username != 'Anonymous') %]
40            <a href="[% cgi_url %]?username=[% node.username %];action=userstats">[% node.username %]</a>
41          [% ELSE %]
[424]42            <a href="[% cgi_url %]?host=[% node.host %];action=userstats">[% node.host %]</a>
[423]43          [% END %]
[443]44          </span> [% IF node.comment %]- [% END %]<span class="recentchanges_comment">[% node.comment %]</span>
[423]45        </td>
46      </tr>
47    [% END %]
[471]48    </table>
49  [% END %]
[423]50
[473]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 %]
[471]59
[473]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 %]
[471]64
[473]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 %]
[471]69
[473]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
[471]80[% END %]
81
[617]82</div>
[2]83[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.