Skip to content

Commit

Permalink
Tweak nav to get appropriate styles, mostly (firestormforum#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
knewter authored Jun 27, 2017
1 parent 75a9fa3 commit da066d5
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions lib/firestorm_web/web/templates/layout/_drawer.html.eex
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<ul>
<%= if current_user(@conn) do %>
<li><%= link "Log Out #{current_user(@conn).username}", to: auth_path(@conn, :delete) %></li>
<% else %>
<li><%= link "Log In", to: auth_path(@conn, :login) %></li>
<% end %>
</ul>
<div class="navigation-drawer">
<ul>
<li><%= link "Categories", to: category_path(@conn, :index) %></li>
</ul>
<ul>
<%= if current_user(@conn) do %>
<li><%= link "Log Out", to: auth_path(@conn, :delete) %></li>
<% else %>
<li><%= link "Log In", to: auth_path(@conn, :login) %></li>
<% end %>
</ul>
</div>

0 comments on commit da066d5

Please sign in to comment.