1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-22 22:37:01 +00:00

Dropdown for user pages

This commit is contained in:
2016-01-08 13:46:31 +00:00
parent cffd70e9f6
commit 1bd4782a86

View File

@@ -7,9 +7,15 @@
<li><%= link_to "Browse Tournaments", "/tournaments/" %></li> <li><%= link_to "Browse Tournaments", "/tournaments/" %></li>
<li><%= link_to "About", "/static_pages/about" %></li> <li><%= link_to "About", "/static_pages/about" %></li>
<% if user_signed_in? %> <% if user_signed_in? %>
<li><%=link_to "Log out", destroy_user_session_url ,:method => 'delete' %></li> <li class="dropdown">
<li><%=link_to "Edit user", edit_user_registration_path %></li> <a class="dropdown-toggle" data-toggle="dropdown" href="#"><%= current_user.email %>
<li><%=link_to "My tournaments","/static_pages/my_tournaments" %></li> <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><%=link_to "Log out", destroy_user_session_url ,:method => 'delete' %></li>
<li><%=link_to "Edit user", edit_user_registration_path %></li>
<li><%=link_to "My tournaments and schools","/static_pages/my_tournaments" %></li>
</ul>
</li>
<% else %> <% else %>
<li><%= link_to "Log In" , new_user_session_path %></li> <li><%= link_to "Log In" , new_user_session_path %></li>
<% end %> <% end %>