Show
Ignore:
Timestamp:
06/17/07 00:57:32 (19 months ago)
Author:
ilmari
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/templates/preferences.tt

    r1084 r1085  
    99    <h1>Username</h1> 
    1010    <p><label for="username">How you wish to be identified in Recent Changes:</label></p> 
    11     <input type="text" size="20" id="username" name="username" value="[% username %]" /> 
     11    <input type="text" size="20" id="username" name="username" value="[% prefs.username %]" /> 
    1212 
    1313    <h1>Preferences</h1> 
     
    118118  <h1>Username/preferences saved</h1> 
    119119 
    120   <p>Username set to &#8220;[% username %]&#8221;.</p> 
     120  <p>Username set to &#8220;[% prefs.username %]&#8221;.</p> 
    121121 
    122122  <p>Preview area shown 
     
    129129 
    130130  <p>&#8220;Look for nearby geocaches&#8221; link 
    131     [% UNLESS include_geocache_link %] not [% END %] 
     131    [% UNLESS prefs.include_geocache_link %] not [% END %] 
    132132  included in navbar.</p> 
    133133 
     
    150150 
    151151  <p>Your visits to Recent Changes will 
    152     [% UNLESS track_recent_changes_views %] not [% END %] 
     152    [% UNLESS prefs.track_recent_changes_views %] not [% END %] 
    153153  be tracked.</p> 
    154154