Changeset 1022


Ignore:
Timestamp:
Apr 20, 2007, 4:12:20 PM (14 years ago)
Author:
kake
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r1020 r1022  
    1414        Made div#maincontent on the edit form wrap the preview view only, not
    1515          the whole form.
     16        Added links to the "revision N" and "Last edited" text in the navbar.
    1617        Add JavaScript to the Create New Page page so the prefilled
    1718          "New page name" disappears when you click in the field (it doesn't
  • 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">
Note: See TracChangeset for help on using the changeset viewer.