<% if check_controller_against_user('pages') %>
<%= link_to admin_pages_path, :class => 'shortcut' do %>
<%= t("generic.pages") %>
<% end %>
<% end %>
<% if check_controller_against_user('articles') %>
<%= link_to admin_articles_path, :class => 'shortcut' do %>
<%= t("generic.articles") %>
<% end %>
<% end %>
<% if check_controller_against_user('administrators') %>
<%= link_to admin_administrators_path, :class => 'shortcut' do %>
<%= t("views.admin.dashboard.administrators") %>
<% end %>
<% end %>
<% if check_controller_against_user('settings') %>
<%= link_to admin_settings_path, :class => 'shortcut' do %>
<%= t("generic.settings") %>
<% end %>
<% end %>
<% if check_controller_against_user('menus') %>
<%= link_to admin_menus_path, :class => 'shortcut' do %>
<%= t("generic.menus") %>
<% end %>
<% end %>
<% if check_controller_against_user('trash') %>
<%= link_to admin_trash_index_path, :class => 'shortcut' do %>
<%= t("generic.trash") %>
<% end %>
<% end %>
<%= t("views.admin.dashboard.latest_5_comments") %>
<% @comments.each do |comment| %>-
<%= comment.author %>
<%= link_to edit_admin_comment_path(comment), :class => 'btn btn-xs btn-default' do %>
<% end %>
<%= link_to mark_as_spam_admin_comment_path(comment), :class => 'btn btn-xs btn-default' do %>
<% end %>
<%= link_to admin_comment_path(comment), method: :delete, data: { confirm: t("views.admin.generic.confirm") }, :class => 'btn btn-xs btn-danger' do %>
<% end %>
<% end %>
<%= create_excerpt(comment.comment, 50) %>