thingspeak/app/views/layouts/_menu.html.erb

9 lines
420 B
Plaintext

<% if @menu_type != 'nomenu' %>
<div id="menu" class="round">
<div<%= " class='selected'" if @menu == 'home' %>><%= link_to t(:home), root_path %></div>
<% if current_user %>
<div<%= " class='selected'" if @menu == 'channels' %>><%= link_to t(:channels), channels_path %></div>
<div<%= " class='selected'" if @menu == 'account' %>><%= link_to t(:myaccount), account_path %></div>
<% end %>
</div>
<% end %>