From: Tom Hughes Date: Thu, 17 Apr 2008 23:30:30 +0000 (+0000) Subject: Move user diaries link to the tab bar as it changes what is displayed X-Git-Tag: live~7842^2~9 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/016e43e596029695c309f51c0d7eb08eefd69ab3 Move user diaries link to the tab bar as it changes what is displayed in the main frame, and everything else which does that is on the tab bar. --- diff --git a/app/views/layouts/site.rhtml b/app/views/layouts/site.rhtml index c5ecfbd7c..073b76388 100644 --- a/app/views/layouts/site.rhtml +++ b/app/views/layouts/site.rhtml @@ -42,11 +42,13 @@ editclass = 'active' if params['controller'] == 'site' and params['action'] == 'edit' exportclass = 'active' if params['controller'] == 'site' and params['action'] == 'export' traceclass = 'active' if params['controller'] == 'trace' + diaryclass = 'active' if params['controller'] == 'diary_entry' %>
  • <%= link_to 'View', {:controller => 'site', :action => 'index'}, {:id => 'viewanchor', :title => 'view maps', :class => viewclass} %>
  • <%= link_to 'Edit', {:controller => 'site', :action => 'edit'}, {:id => 'editanchor', :title => 'edit maps', :class => editclass} %>
  • <%= link_to_remote 'Export', {:url => {:controller => 'export', :action => 'start'}}, {:id => 'exportanchor', :title => 'export map data', :class => exportclass, :href => url_for(:controller => 'site', :action => 'export')} %>
  • -
  • <%= link_to 'GPS traces', {:controller => 'trace', :action => 'list'}, {:id => 'traceanchor', :title => 'manage traces', :class => traceclass} %>
  • +
  • <%= link_to 'GPS Traces', {:controller => 'trace', :action => 'list'}, {:id => 'traceanchor', :title => 'manage traces', :class => traceclass} %>
  • +
  • <%= link_to 'User Diaries', {:controller => 'diary_entry', :action => 'list'}, {:id => 'diaryanchor', :title => 'view user diaries', :class => diaryclass} %>
  • @@ -84,7 +86,6 @@
    Help & Wiki
    - <%= link_to "Users' diaries", {:controller => 'diary_entry', :action => 'list', :display_name => nil} %>
    News blog
    Shop
    <%= yield :left_menu %>