master
1<header class="container">
2 <nav class="nav">
3 <div class="nav-left">
4 <%= link_to t("app"), root_path, class: 'nav-item is-brand' %>
5 <%= link_to t(".blog"), "http://slog.stronglifters.com", class: 'nav-item' %>
6 <%= link_to t(".about"), "http://slog.stronglifters.com/about", class: 'nav-item' %>
7 </div>
8 <div class="nav-center">
9 <a class="nav-item" href="https://github.com/stronglifters/">
10 <span class="icon">
11 <i class="fa fa-github"></i>
12 </span>
13 </a>
14 <a class="nav-item" href="https://twitter.com/stronglifters">
15 <span class="icon">
16 <i class="fa fa-twitter"></i>
17 </span>
18 </a>
19 </div>
20 <!-- This "nav-toggle" hamburger menu is only visible on mobile -->
21 <!-- You need JavaScript to toggle the "is-active" class on "nav-menu" -->
22 <span class="nav-toggle">
23 <span></span>
24 <span></span>
25 <span></span>
26 </span>
27
28 <!-- This "nav-menu" is hidden on mobile -->
29 <!-- Add the modifier "is-active" to display it on mobile -->
30 <div class="nav-right nav-menu">
31 <%= link_to t(".workouts"), workouts_path, class: 'nav-item' %>
32 <% if feature_enabled? :athletes %>
33 <%= link_to t(".athletes"), profiles_path, class: 'nav-item' %>
34 <% end %>
35 <%= link_to t(".gyms"), gyms_path, class: 'nav-item' %>
36 <%= link_to profile_path(current_user), class: 'nav-item is-tab' do %>
37 <figure class="image is-16x16" style="margin-right: 8px;">
38 <%= gravatar_for(current_user, size: 16) %>
39 </figure>
40 <%= t(".profile") %>
41 <% end %>
42 <%= link_to t(".log_out"), session_path('me'), method: :delete, class: 'nav-item is-tab' %>
43 </div>
44 </nav>
45</header>