From: Christopher Schmidt Date: Mon, 21 Apr 2008 13:52:43 +0000 (+0000) Subject: Create a 'browse' tab, which will be used to display data on the main page X-Git-Tag: live~7699^2~33 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c69dc37b2c37d367211f3365ffe08976d0a7504b Create a 'browse' tab, which will be used to display data on the main page --- diff --git a/app/views/layouts/site.rhtml b/app/views/layouts/site.rhtml index db7fce0a6..dd43e8b4d 100644 --- a/app/views/layouts/site.rhtml +++ b/app/views/layouts/site.rhtml @@ -43,6 +43,7 @@ exportclass = 'active' if params['controller'] == 'site' and params['action'] == 'export' traceclass = 'active' if params['controller'] == 'trace' diaryclass = 'active' if params['controller'] == 'diary_entry' + browseclass = 'active' if params['controller'] == 'browse' %>
  • <%= 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} %>
  • @@ -53,6 +54,7 @@ <% end %>
  • <%= 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} %>
  • +
  • <%= link_to 'Browse', {:controller => 'browse', :action => 'index'}, {:id => 'browseanchor', :title => 'browse data', :class => browseclass} %>