1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
[%
IF page.path == '/';
SET title = loc('Recent pages in this wiki');
ELSE;
SET title = loc('Recent pages in x', page.path);
END;
IF activetag;
SET title = loc('Recent pages in x tagged with x', [page.path, activetag]);
END;
SET now = c.tz(objects.first.content.created).ymd;
%]
[% WRAPPER page/wrapper.tt title = title %]
<div id="content">
[% IF tags.count %]
<div id="categories">
<strong>[% loc('Tags') %]</strong>:
[% WHILE (tag = tags.next) %]
[% IF tag.tag == activetag %]
<strong>[% tag.tag %]</strong>
[% ELSE %]
<a href="[% c.uri_for('recent' tag.tag) %]">[% tag.tag %]</a> ([% tag.refcount %])
[% END %]
[% END %]
</div>
[% END %]
<h3>[% now %]</h3>
[% first = 1 %]
[% FOREACH page IN pages %]
[% IF c.check_permissions(page.path,c.user).view %]
[% IF now != c.tz(page.content.created).ymd; %]
[% IF first; first = 0; ELSE %]
</tbody></table>
[% END %]
[% SET now = c.tz(page.content.created).ymd %]
<h3>[% now %]</h3>
<table class="recent">
<thead>
<tr>
<th class="page">[% loc('Page') %]</th>
<th class="editedBy">[% loc('Edited by') %]</th>
<th class="timeEdited">[% loc('Time edited') %]</th>
<th class="actions">[% loc('Actions') %]</th>
</tr>
</thead>
<tbody>
[% END %]
<tr class="item">
<td>
<a href="[% c.uri_for( page.path ) %]">[% page.name_orig %]</a>
<div class="diff display-none"></div>
</td>
<td>
<a href="[% c.req.base; page.content.creator.link _ '.profile'; %]">[% page.content.creator.name %]</a>
</td>
<td>
[% c.tz(page.content.created).hms(":") %]
</td>
<td><a rel="nofollow" href="[% c.uri_for('jsrpc/diff', page.id , 0, 0, 1) %]" class="diff_link">[% loc('View Diff') %]</a></td>
</tr>
[% END %]
[% END %]
</tbody>
</table>
</div>
[% END # End WRAPPER %]
|