Rensselaer Center for Open Source Software

This simply moves GPS Traces to the left bar

2 files changed, 4 lines added, 6 lines removed

The left bar is a bit of a kludge of random items right now, but it's a little better having the GPS Traces item there, because it now makes the top bar only items that are actually related to the map state.

Changes

--- app/views/layouts/site.html.erb 7feb0d14c6860bb88961366531fea8fb7aa9a100
+++ app/views/layouts/site.html.erb dd3b577bd5bbe4f9d9d1cac8e0f328a16b75f7f5
@@ -31,18 +31,15 @@
-        traceclass = ''
-        viewclass += ' active' if params['controller'] == 'site' and params['action'] == 'index' 
-        editclass += ' active' if params['controller'] == 'site' and params['action'] == 'edit' 
-        historyclass += ' active' if params['controller'] == 'changeset' and params['action'] == 'list' 
+        viewclass += ' active' if params['controller'] == 'site' and params['action'] == 'index'
+        editclass += ' active' if params['controller'] == 'site' and params['action'] == 'edit'
+        historyclass += ' active' if params['controller'] == 'changeset' and params['action'] == 'list'
-        traceclass += ' active' if params['controller'] == 'trace'
-        <li><%= link_to t('layouts.gps_traces'), {:controller => 'trace', :action => 'list', :display_name => nil, :tag => nil, :page => nil}, {:id => 'traceanchor', :title => t('layouts.gps_traces_tooltip'), :class => traceclass} %></li>
@@ -105,6 +102,7 @@
+          <li><%= link_to t('layouts.gps_traces'), {:controller => 'trace', :action => 'list', :display_name => nil, :tag => nil, :page => nil}, {:id => 'traceanchor', :title => t('layouts.gps_traces_tooltip') } %></li>
Tom MacWright
Jumpstart • 60 weeks ago