Browse Source

ergonomic menu

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

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

@ -16,7 +16,7 @@
<% end %> <% end %>
</li> </li>
</ul> </ul>
<ul class="nav pull-right"> <ul class="nav pull-right">
<li> <li>
<%= link_to(Settings.news_link, rel: 'tooltip', title: Settings.news_link) do %> <%= link_to(Settings.news_link, rel: 'tooltip', title: Settings.news_link) do %>
@ -26,18 +26,26 @@
<li> <li>
<%= link_to(page_path('donate'), rel: 'tooltip', title: 'PayPal', <%= link_to(page_path('donate'), rel: 'tooltip', title: 'PayPal',
class: 'highlight', data: {pjax: '#main'}) do %> class: 'highlight', data: {pjax: '#main'}) do %>
<i class="icon-white icon-heart"></i> Donate <i class="icon-white icon-heart"></i> Donate
<% end %> <% end %>
</li> </li>
<li>
<%= link_to(edit_user_registration_path, rel: 'tooltip', <li class="dropdown">
:title => "IP: #{client_remote_ip}", data: {pjax: '#main'}) do %> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="icon-white icon-user"></i> <%= current_user.email %> <i class="icon-white icon-user"></i> <%= current_user.email %> <b class="caret"></b>
<% end %> </a>
</li>
<li> <ul class="dropdown-menu">
<%= link_to(destroy_user_session_path, method: :delete) do %> <li>
<i class="icon-white icon-off"></i> Sign out <%= link_to(edit_user_registration_path, rel: 'tooltip',
<% end %> :title => "IP: #{client_remote_ip}", data: {pjax: '#main'}) do %>
</li> <i class="icon-cog"></i> Settings
</ul> <% end %>
</li>
<li>
<%= link_to(destroy_user_session_path, method: :delete) do %>
<i class="icon-off"></i> Sign out
<% end %>
</li>
</ul>
</ul>

Loading…
Cancel
Save