Changeset 1022 for trunk/templates

Show
Ignore:
Timestamp:
04/20/07 16:12:20 (19 months ago)
Author:
kake
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/templates/navbar_revision_info.tt

    r942 r1022  
    22  <div class="navbar_revision"> 
    33    [% IF current %] 
    4       <div id="navbar_version">Revision [% version %].</div> 
    5       <div id="navbar_last_edited">Last edited [% last_modified %].</div> 
     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> 
    617    [% ELSE %] 
    718      <div id="navbar_this_revision_info"> 
    8         This is revision [% version %] (as of [% last_modified %]). 
     19        This is <a href="[% cgi_url %]?action=list_all_versions;id=[% node_param %]">revision [% version %]</a> (as of [% last_modified %]). 
    920      </div> 
    1021      <div id="navbar_current_version_link">