2014-04-08 23:28:46 +00:00
|
|
|
<div class="links">
|
|
|
|
<h5><%= namelink(cuser) %></h5>
|
|
|
|
<ul>
|
2014-04-19 01:12:02 +00:00
|
|
|
<% if cuser.admin? %>
|
|
|
|
<li>
|
|
|
|
<%= link_to '/about/adminpanel', class: 'admin' do %>
|
|
|
|
<%= icon 'wrench' %> Admin (<%= Issue.with_status(0).count %>)
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
2014-04-08 23:28:46 +00:00
|
|
|
<li>
|
|
|
|
<%= link_to edit_user_path(cuser) do %>
|
2014-04-15 09:59:52 +00:00
|
|
|
<%= icon 'user' %> Account
|
2014-04-08 23:28:46 +00:00
|
|
|
<% 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>
|