Commit d20566f

mo khan <mo@mokhan.ca>
2016-07-09 21:33:56
fix issue for android when clicking on gravatar.
1 parent b238dfe
Changed files (1)
app
app/views/layouts/application.html.erb
@@ -27,19 +27,17 @@
                 <li class="name">
                   <h1><%= link_to "Stronglifters", dashboard_path %></h1>
                 </li>
-                <li class="toggle-topbar menu-icon"><a href="#"><span>menu</span></a></li>
+                <li class="toggle-topbar menu-icon"><a href="#"><span><%= current_user.username %></span></a></li>
               </ul>
               <section class="top-bar-section">
                 <!-- Right Nav Section -->
                 <ul class="right">
-                  <% if feature_enabled?(:gym) %>
-                  <li> <%= search_form %> </li>
+                  <li class="show-for-medium-up"> <%= search_form %> </li>
                   <li class="divider"></li>
                   <li><%= link_to t(".gyms"), gyms_path %></li>
-                  <% end %>
                   <li class="divider"></li>
                   <li class="has-dropdown">
-                    <a href="#"><%= gravatar_for(current_user, size: 16) %> <%= current_user.username %></a>
+                    <a><%= gravatar_for(current_user, size: 16) %> <%= current_user.username %></a>
                     <ul class="dropdown">
                       <li><%= link_to t(".nav.user.workouts"), workouts_path %></li>
                       <li><%= link_to t(".nav.user.profile_edit"), edit_profile_path(current_user) %></li>