ensl.org/app/views/widgets/_logged.html.erb

19 lines
540 B
Text
Raw Normal View History

2014-04-06 14:14:03 +00:00
<ul>
<% if cuser %>
<%= t('login_status') %>: <%= namelink(cuser) %>
<% end %>
<li><%= link_to 'Profile', edit_user_path(cuser) %></li>
<li><%= link_to 'Agenda', "/users/agenda/#{cuser.id}" %></li>
<li>
<%= link_to 'PMs', messages_path() %>
<% if c = cuser.new_messages.count > 0 %>
(<%= cuser.new_messages.count %>)
<% end %>
</li>
2014-04-06 14:14:03 +00:00
<li>
<%= form_tag(controller: "users", action: "logout") do %>
<%= link_to_function "Logout", '$(this).closest("form").submit();' %>
<% end %>
</li>
</ul>