Changeset 628


Ignore:
Timestamp:
May 14, 2005, 6:39:58 PM (17 years ago)
Author:
Dominic Hargreaves
Message:

update navbar with earle's changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/navbar.tt

    r627 r628  
    11<div id="navbar">
    22
    3   <div class="navbar_group">
    4     <div class="navbar_group_title">Tools:</div>
    5     <div class="navbar_item"><a href="[% full_cgi_url %]?RecentChanges">Recent Changes</a> <span class="hidden">/</span></div>
    6     <div class="navbar_item"><a href="newpage.cgi">Create a new page</a> <span class="hidden">/</span></div>
    7     <div class="navbar_item"><a href="[% full_cgi_url %]?action=random">Random Page</a> <span class="hidden">/</span></div>
    8     <div class="navbar_item"><a href="[% full_cgi_url %]?action=show_wanted_pages">Wanted Pages</a> <span class="hidden">/</span></div>
     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 %]?RecentChanges">Recent Changes</a>
     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>
    914    [% IF geocache_link AND latitude AND longitude %]
    10       <div class="navbar_item"><a href="http://www.geocaching.com/seek/nearest_cache.asp?origin_lat=[% latitude %];origin_long=[% longitude %]">Look for nearby geocaches</a></div>
     15      <li><a href="http://www.geocaching.com/seek/nearest_cache.asp?origin_lat=[% latitude %];origin_long=[% longitude %]">Look for nearby geocaches</a></li>
    1116    [% END %]
    12   </div>
     17  </ul>
    1318
    1419  [% UNLESS omit_help_links %]
    15     <div class="navbar_group">
    16       <div class="navbar_group_title">Help: <span class="hidden">/</span></div>
    17       <div class="navbar_item"><a href="[% full_cgi_url %]?FAQ">FAQ</a> <span class="hidden">/</span></div>
    18       <div class="navbar_item"><a href="[% full_cgi_url %]?How_To_Get_Started">How To Get Started</a> <span class="hidden">/</span></div>
     20
     21    <div class="navbar_group_title">Help: <span class="hidden">/</span></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>
    1926      [% IF formatting_rules_link %]
    20         <div class="navbar_item"><a href="[% formatting_rules_link %]">[% formatting_rules_node %]</a> <span class="hidden">/</span></div>
     27        <li><a href="[% formatting_rules_link %]">[% formatting_rules_node %]</a></li>
    2128      [% END %]
    22       <div class="navbar_item"><a href="[% full_cgi_url %]?Wiki_Etiquette">Wiki Etiquette</a> <span class="hidden">/</span></div>
    23     </div>
     29      <li><a href="[% full_cgi_url %]?Wiki_Etiquette">Wiki Etiquette</a></li>
     30    </ul>
     31
    2432  [% END %]
    2533
    26   <div class="navbar_group">
    27     <div class="navbar_group_title">Options:</div>
    28     <div class="navbar_item"><a href="preferences.cgi">Set username/prefs</a></div>
    29   </div>
     34  <div class="navbar_group_title">Options:</div>
    3035
    31   <div class="navbar_group">
    32     <div class="navbar_group_title">Search:</div>
    33     <div class="navbar_item">
     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>
    3444      <form method="post" action="supersearch.cgi" enctype="application/x-www-form-urlencoded">
    3545        <input type="hidden" name="action" value="search" />
     
    3747        <input type="submit" value="Go" class="form_button" />
    3848      </form>
    39     </div>
    40     <div class="navbar_item">
    41       <a href="supersearch.cgi">Advanced Search</a>
    42     </div>
     49    </li>
     50    <li><a href="supersearch.cgi">Advanced Search</a></li>
    4351  </div>
    4452
    4553  [% UNLESS not_editable %]
    46     <div class="navbar_group">
    47       <div class="navbar_group_title">This page:</div>
    48         <div class="edit_page_link"><a href="[% full_cgi_url %]?id=[% node_param %];action=edit">Edit this page</a></div>
    49       <div class="navbar_item">
    50         <a href="[% cgi_url %]?action=show_backlinks;id=[% node_param %]">Pages that link to here</a>
    51       </div>
     54    <div class="navbar_group_title">This page:</div>
     55
     56    <ul>
     57      <li><a class="edit_page_link" href="[% 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 > 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    </div>
     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 %]
    5275    </div>
    5376  [% END %]
Note: See TracChangeset for help on using the changeset viewer.