Ignore:
Timestamp:
Mar 17, 2007, 4:39:51 PM (15 years ago)
Author:
kake
Message:

Split out "modules" from navbar.tt into separate templates - navbar_*.tt - to make it easier for people to change their order in a custom template.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/navbar.tt

    r739 r942  
    11<div id="navbar">
    22
    3   [% UNLESS node_param == 'Home' %]
    4   <div class="navbar_site_name"><a href="[% full_cgi_url %]">[% site_name %]</a></div>
    5   [% END %]
    6 
    7   <div class="navbar_group_title">Tools:</div>
    8 
    9   <ul>
    10     <li><a href="[% full_cgi_url %]?action=rc">Recent Changes</a></li>
    11     <li><a href="newpage.cgi">Create New Page</a></li>
    12     <li><a href="[% full_cgi_url %]?action=random">Random Page</a></li>
    13     <li><a href="[% full_cgi_url %]?action=show_wanted_pages">Wanted Pages</a></li>
    14     [% IF geocache_link AND latitude AND longitude %]
    15       <li><a href="http://www.geocaching.com/seek/nearest_cache.asp?origin_lat=[% latitude %];origin_long=[% longitude %]">Look for nearby geocaches</a></li>
    16     [% END %]
    17   </ul>
    18 
    19   [% UNLESS omit_help_links %]
    20 
    21   <div class="navbar_group_title">Help:</div>
    22 
    23   <ul>
    24     <li><a href="[% full_cgi_url %]?FAQ">FAQ</a></li>
    25     <li><a href="[% full_cgi_url %]?How_To_Get_Started">How To Get Started</a></li>
    26     [% IF formatting_rules_link %]
    27       <li><a href="[% formatting_rules_link %]">[% formatting_rules_node %]</a></li>
    28     [% END %]
    29     <li><a href="[% full_cgi_url %]?Wiki_Etiquette">Wiki Etiquette</a></li>
    30   </ul>
    31 
    32   [% END %]
    33 
    34   <div class="navbar_group_title">Options:</div>
    35 
    36   <ul>
    37     <li><a href="preferences.cgi">Set username/prefs</a></li>
    38   </ul>
    39 
    40   <div class="navbar_group_title">Search:</div>
    41 
    42   <ul>
    43     <li>
    44       <form method="post" action="search.cgi" enctype="application/x-www-form-urlencoded">
    45         <input type="hidden" name="action" value="search" />
    46         <input type="text" size="15" name="search" id="nav_search" value="Search text" onfocus="this.value=''" /> <label for="nav_search" class="hidden">Search text</label>
    47         <input type="submit" value="Go" class="form_button" />
    48       </form>
    49     </li>
    50     <li><a href="search.cgi">Advanced Search</a></li>
    51   </ul>
    52 
    53   [% UNLESS not_editable %]
    54     <div class="navbar_group_title">This page:</div>
    55 
    56     <ul>
    57       <li><a class="edit_page_link" href="[% source_site or full_cgi_url %]?id=[% node_param %];action=edit">Edit this page</a></li>
    58       <li><a href="[% cgi_url %]?action=show_backlinks;id=[% node_param %]">Show pages linking here</a></li>
    59       [% IF version AND version > 1 %]
    60         <li><a href="[% cgi_url %]?action=list_all_versions;id=[% node_param %]">List all revisions</a></li>
    61       [% END %]
    62         <li><a href="[% cgi_url %]?id=[% node_param %];format=rdf">RDF/XML version</a></li>
    63       [% IF enable_page_deletion %]
    64         <li><a href="[% full_cgi_url %]?id=[% node_param %];action=delete">Delete (admin only)</a></li>
    65       [% END %]
    66     </ul>
    67 
    68     <div class="navbar_revision">
    69       [% IF current %]
    70         Revision [% version %]. Last edited [% last_modified %].
    71       [% ELSE %]
    72         This is revision [% version %] (as of [% last_modified %]).<br />
    73         <a href="[% cgi_url %]?[% node_param %]">View current version.</a>
    74       [% END %]
    75     </div>
    76   [% END %]
     3  [% INCLUDE navbar_home_link.tt %]
     4  [% INCLUDE navbar_tools.tt %]
     5  [% INCLUDE navbar_help.tt %]
     6  [% INCLUDE navbar_options.tt %]
     7  [% INCLUDE navbar_search.tt %]
     8  [% INCLUDE navbar_this_page.tt %]
     9  [% INCLUDE navbar_revision_info.tt %]
    7710
    7811</div>
Note: See TracChangeset for help on using the changeset viewer.