Browse Source

ergonomic menu

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
fca576c4a5
  1. 14
      app/views/fragments/navigation/_application.html.erb

14
app/views/fragments/navigation/_application.html.erb

@ -29,15 +29,23 @@
<i class="icon-white icon-heart"></i> Donate
<% end %>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="icon-white icon-user"></i> <%= current_user.email %> <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<%= link_to(edit_user_registration_path, rel: 'tooltip',
:title => "IP: #{client_remote_ip}", data: {pjax: '#main'}) do %>
<i class="icon-white icon-user"></i> <%= current_user.email %>
<i class="icon-cog"></i> Settings
<% end %>
</li>
<li>
<%= link_to(destroy_user_session_path, method: :delete) do %>
<i class="icon-white icon-off"></i> Sign out
<i class="icon-off"></i> Sign out
<% end %>
</li>
</ul>
</ul>
</ul>

Loading…
Cancel
Save