Moderation Reports: add link for moderators to navbar

This commit is contained in:
nonamethanks
2022-02-14 17:19:21 +01:00
parent eb032d54c1
commit 9ff01c1a4b
2 changed files with 3 additions and 1 deletions

View File

@@ -46,7 +46,8 @@ header#top {
color: var(--login-link-color);
}
li.forum-updated a {
li.forum-updated a,
li.reports-pending a {
font-style: italic;
}
}

View File

@@ -13,6 +13,7 @@
<%= nav_link_to("Wiki", wiki_page_path("help:home")) %>
<%= nav_link_to("Forum", forum_topics_path, :class => (CurrentUser.has_forum_been_updated? ? "forum-updated" : nil)) %>
<% if CurrentUser.is_moderator? %>
<%= nav_link_to("Reports", moderation_reports_path, :class => (ModerationReport.where(status: "pending").present? ? "reports-pending" : nil)) %>
<%= nav_link_to("Dashboard", moderator_dashboard_path) %>
<% end %>
<%= nav_link_to("More »", site_map_path) %>