Skip to content

Commit

Permalink
Add logout button to end a user session
Browse files Browse the repository at this point in the history
  • Loading branch information
ryft committed Jun 22, 2015
1 parent c4ba01d commit f0124d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/layouts/wrapper.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
<button type="button" class="btn btn-default <%= 'active' if ($split == 2) %>" onclick="window.location='/<%= $page %>/2'">Spring 15</button>
<button type="button" class="btn btn-default <%= 'active' if ($split == 3) %>" onclick="window.location='/<%= $page %>/3'">Summer 15</button>
</div>
<a href="/logout" class="btn btn-default" style="background: none; border: none" title="Log out <%= current_user() ? current_user()->{username} : '' %>">
<span class="glyphicon glyphicon-log-out"></span>
</a>
</div>
</div>
% }
Expand Down

0 comments on commit f0124d0

Please sign in to comment.