<% path = root_path('dashboard?range=seconds') active = params.current_range == :seconds ? 'active' : false %> 5 minutes <% path = root_path('dashboard?range=minutes') active = params.current_range == :minutes ? 'active' : false %> 1 hour <% path = root_path('dashboard?range=hours') active = params.current_range == :hours ? 'active' : false %> 24 hours <% path = root_path('dashboard?range=days') active = params.current_range == :days ? 'active' : false %> 7 days