summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspeasley <s@stephenpeasley.com>2016-07-10 23:16:08 -0600
committerspeasley <s@stephenpeasley.com>2016-07-10 23:16:08 -0600
commit8be362d0cf2bf2dcd1029a8d3ae2e23dcf078f7c (patch)
treefc0e66187fabbbaf69e7e69c73023f3296831e64
parentfd925185da518f6cd94135241fe66bd1354f4e68 (diff)
A bit of menu reorganization
-rw-r--r--app/views/layouts/application.html.erb16
1 files changed, 6 insertions, 10 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index b570f85..b6f79ed 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -28,11 +28,11 @@
<!-- off-canvas left menu -->
<div class="off-canvas position-left" id="offCanvas" data-off-canvas>
<ul class="vertical dropdown menu" data-dropdown-menu>
+ <li><%= link_to t(".nav.user.workouts"), workouts_path %></li>
<% if feature_enabled?(:gym) %>
<li> <%= search_form %> </li>
<li><%= link_to t(".gyms"), gyms_path %></li>
<% end %>
- <li><%= link_to t(".nav.user.workouts"), workouts_path %></li>
<li><%= link_to t(".nav.user.profile_edit"), edit_profile_path(current_user) %></li>
<li><%= link_to t(".nav.user.profile_view"), profile_path(current_user) %></li>
<li><%= link_to t(".nav.user.log_out"), session_path('me'), method: :delete %></li>
@@ -44,10 +44,14 @@
<div class="top-bar-left">
<ul class="dropdown menu" data-dropdown-menu>
<li class="menu-text"><%= t('.title') %></li>
+ <li><%= link_to t(".nav.user.workouts"), workouts_path %></li>
+ <% if feature_enabled?(:gym) %>
+ <li> <%= search_form %> </li>
+ <li><%= link_to t(".gyms"), gyms_path %></li>
+ <% end %>
<li class="has-submenu">
<a href="#"><%= gravatar_for(current_user, size: 16) %> <%= current_user.username %></a>
<ul class="menu submenu vertical" data-submenu>
- <li><%= link_to t(".nav.user.workouts"), workouts_path %></li>
<li><%= link_to t(".nav.user.profile_edit"), edit_profile_path(current_user) %></li>
<li><%= link_to t(".nav.user.profile_view"), profile_path(current_user) %></li>
<li><%= link_to t(".nav.user.log_out"), session_path('me'), method: :delete %></li>
@@ -55,14 +59,6 @@
</li>
</ul>
</div>
- <div class="top-bar-right">
- <ul class="menu">
- <% if feature_enabled?(:gym) %>
- <li> <%= search_form %> </li>
- <li><%= link_to t(".gyms"), gyms_path %></li>
- <% end %>
- </ul>
- </div>
</div>
<!-- original content goes in this container -->