root/branches/new-install-process/templates/navbar_tools.tt

Revision 1085, 0.6 kB (checked in by ilmari, 19 months ago)

Clean up fallout from prefs cleanup
- Make OpenGuides::Template->output pass the provided cookies to

OpenGuides::CGI->get_prefs_from_cookie, where this overrides any
browser-supplied cookie.

- Use the prefs hash explcitly where needed (fixes #216).

Targets to commit (you may delete items from it)


M /home/ilmari/src/openguides-trunk/lib/Changes.pm
M /home/ilmari/src/openguides-trunk/lib/OpenGuides/CGI.pm
M /home/ilmari/src/openguides-trunk/lib/OpenGuides/Template.pm
M /home/ilmari/src/openguides-trunk/preferences.cgi
M /home/ilmari/src/openguides-trunk/t/59_preferences.t
M /home/ilmari/src/openguides-trunk/templates/preferences.tt
M /home/ilmari/src/openguides-trunk/templates/navbar_tools.tt

Line 
1<div id="navbar_tools">
2  <div class="navbar_group_title">Tools:</div>
3  <ul>
4    <li><a href="[% full_cgi_url %]?action=rc">Recent Changes</a></li>
5    <li><a href="[% script_url %]newpage.cgi">Create New Page</a></li>
6    <li><a href="[% full_cgi_url %]?action=random">Random Page</a></li>
7    <li><a href="[% full_cgi_url %]?action=show_wanted_pages">Wanted Pages</a></li>
8    [% IF prefs.include_geocache_link AND wgs84_lat AND wgs84_long %]
9      <li><a href="http://www.geocaching.com/seek/nearest_cache.asp?origin_lat=[% wgs84_lat %]&amp;origin_long=[% wgs84_long %]">Look for nearby geocaches</a></li>
10    [% END %]
11  </ul>
12</div>
Note: See TracBrowser for help on using the browser.