mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 17:31:27 +00:00
3e757e2d76
Improves spacing Improves button layout on forums
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
<div class="logged">
|
|
<div class="links">
|
|
<ul>
|
|
<% if cuser.admin? %>
|
|
<li>
|
|
<%= link_to '/about/adminpanel', class: 'admin' do %>
|
|
Admin (<%= Issue.with_status(0).count %>) <%= icon 'wrench' %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
<li>
|
|
<%= link_to edit_user_path(cuser) do %>
|
|
Account <%= icon 'user' %>
|
|
<% end %>
|
|
</li>
|
|
<li>
|
|
<%= link_to "/users/agenda/#{cuser.id}" do %>
|
|
Agenda <%= icon 'calendar' %>
|
|
<% end %>
|
|
</li>
|
|
<li>
|
|
<%= link_to messages_path do %>
|
|
Messages <%= icon 'envelope' %>
|
|
<% 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 %>
|
|
Logout <%= icon 'key' %>
|
|
<% end %>
|
|
<% end %>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="profile">
|
|
<div class="avatar">
|
|
<%= image_tag cuser.profile.avatar.url %>
|
|
</div>
|
|
</div>
|
|
</div>
|