Merge pull request #5010 from nonamethanks/add-mod-report-link

Moderation Reports: add link for moderators to navbar
This commit is contained in:
evazion
2022-02-20 22:45:30 -06:00
committed by GitHub
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) %>