adds admin layout and access links [#163]
This commit is contained in:
15
app/views/shared/_admin_login_items.html.erb
Normal file
15
app/views/shared/_admin_login_items.html.erb
Normal file
@@ -0,0 +1,15 @@
|
||||
<ul class="right">
|
||||
<% if current_user %>
|
||||
<% if current_user.administrator? %>
|
||||
<li>
|
||||
<%= link_to t("layouts.header.administration"), admin_root_path %>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
<% if current_user.moderator? %>
|
||||
<li>
|
||||
<%= link_to t("layouts.header.moderation"), moderation_root_path %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user