2014-01-29 03:46:58 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# The inner HTML of the account box that comes up in the bottom left
|
|
|
|
#%>
|
|
|
|
|
|
|
|
<% account = current_user %>
|
2014-11-25 20:06:30 +00:00
|
|
|
<%= image_tag user.image.url(:sixtyfour), :size => "48x48", :class => "sidebarAccountImage" %>
|
2014-08-12 15:09:53 +00:00
|
|
|
<h3 class="accountHeader"><%= account.name.split[0...1][0] %></h3>
|
2014-01-29 03:46:58 +00:00
|
|
|
<ul>
|
2014-08-27 02:51:50 +00:00
|
|
|
<li class="accountListItem accountSettings">
|
|
|
|
<div class="accountIcon"></div>
|
|
|
|
<%= link_to "Account", edit_user_url(account), :data => { :bypass => 'true'} %>
|
|
|
|
</li>
|
2014-05-17 18:57:03 +00:00
|
|
|
<% if account.admin %>
|
2014-08-27 02:51:50 +00:00
|
|
|
<li class="accountListItem accountAdmin">
|
|
|
|
<div class="accountIcon"></div>
|
|
|
|
<%= link_to "Admin", metacodes_path, :data => { :bypass => 'true'} %>
|
|
|
|
</li>
|
2014-05-17 18:57:03 +00:00
|
|
|
<% end %>
|
2014-08-27 02:51:50 +00:00
|
|
|
<li class="accountListItem accountLogout">
|
|
|
|
<div class="accountIcon"></div>
|
2014-10-07 21:46:09 +00:00
|
|
|
<%= link_to "Sign Out", "/logout", id: "Logout", :data => { :bypass => 'true'} %>
|
2014-08-27 02:51:50 +00:00
|
|
|
</li>
|
2014-01-29 03:46:58 +00:00
|
|
|
</ul>
|