ensl.org/app/views/widgets/_logged.html.erb
Luke Barratt 12ed7c90ae Start to cleanup old assets
Added new ISO country code flag icons to asset pipeline
Lots and lots of new style changes
Began converting to JS to coffeescript
2014-04-09 00:28:53 +01:00

36 lines
No EOL
839 B
Text

<div class="links">
<h5><%= namelink(cuser) %></h5>
<ul>
<li>
<%= link_to edit_user_path(cuser) do %>
<%= icon 'user' %> Profile
<% end %>
</li>
<li>
<%= link_to "/users/agenda/#{cuser.id}" do %>
<%= icon 'calendar' %> Agenda
<% end %>
</li>
<li>
<%= link_to messages_path do %>
<%= icon 'envelope' %> Messages
<% end %>
<% if c = cuser.new_messages.count > 0 %>
(<%= cuser.new_messages.count %>)
<% end %>
</li>
<li>
<%= form_tag(controller: "users", action: "logout") do %>
<%= link_to "#", id: "logout" do %>
<%= icon 'key' %> Logout
<% end %>
<% end %>
</li>
</ul>
</div>
<div class="profile">
<div class="avatar">
<%= image_tag cuser.profile.avatar.url %>
</div>
</div>