2012-07-24 23:26:16 +02:00
|
|
|
<% if current_user %>
|
2012-07-29 00:33:03 +02:00
|
|
|
<ul class="nav pull-left">
|
2012-07-24 23:26:16 +02:00
|
|
|
<li class="dropdown">
|
2012-07-29 00:33:03 +02:00
|
|
|
<a data-toggle="dropdown" class="dropdown-toggle" href="#"><%= t(:actions) %> <b class="caret"></b></a>
|
2012-07-24 23:26:16 +02:00
|
|
|
<ul class="dropdown-menu">
|
2012-07-29 00:33:03 +02:00
|
|
|
<li><%= link_to current_user.email, account_path %></li>
|
2012-07-24 23:26:16 +02:00
|
|
|
<li><%= link_to 'Logout', logout_path %></li>
|
|
|
|
<li class="divider"></li>
|
2012-07-29 00:33:03 +02:00
|
|
|
<li><%= link_to t("activerecord.actions.create", :model => I18n.t('activerecord.models.collection.single')), new_collection_path %></li>
|
|
|
|
<%= yield :action_links %>
|
2012-07-24 23:26:16 +02:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2012-07-29 00:33:03 +02:00
|
|
|
<% else %>
|
|
|
|
<ul class="nav pull-right">
|
|
|
|
<li><%= link_to t(:login), login_path %></li>
|
|
|
|
<%= yield :action_links %>
|
|
|
|
</ul>
|
2012-07-24 23:26:16 +02:00
|
|
|
<% end %>
|