source: trunk/templates/navbar_revision_info.tt @ 1022

Last change on this file since 1022 was 1022, checked in by kake, 15 years ago

Added links to the "revision N" and "Last edited" text in the navbar.

File size: 1.1 KB
Line 
1[% UNLESS not_editable %]
2  <div class="navbar_revision">
3    [% IF current %]
4      <div id="navbar_version">
5        [%# Note: we display the link even if this is revision 1, for
6            consistency. #%]
7        <a href="[% cgi_url %]?action=list_all_versions;id=[% node_param %]">Revision [% version %]</a>.
8      </div>
9      <div id="navbar_last_edited">
10        [%# Sadly diffversion doesn't work if one version is 0. #%]
11        [% IF version == 1 %]
12          Last edited [% last_modified %].
13        [% ELSE %]
14          <a href="[% cgi_url %]?id=[% node_param %];version=[% version - 1 %];diffversion=[% version %]">Last edited</a> [% last_modified %].
15        [% END %]
16      </div>
17    [% ELSE %]
18      <div id="navbar_this_revision_info">
19        This is <a href="[% cgi_url %]?action=list_all_versions;id=[% node_param %]">revision [% version %]</a> (as of [% last_modified %]).
20      </div>
21      <div id="navbar_current_version_link">
22        <a href="[% cgi_url %]?[% node_param %]">View current version.</a>
23      </div>
24    [% END %]
25  </div>
26[% END %]
Note: See TracBrowser for help on using the repository browser.