[Flags] Show link to user flags on account page to janitors

The permissions to view that were already there, it just wasn't exposed.
Also shows appeals, but I don't want to rewrite that to make it
possible to only have one entry per tr
This commit is contained in:
Earlopain 2022-01-02 12:58:00 +01:00
parent 416af80aaf
commit f97fc30b90
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<%= f.input :reason_matches, label: "Reason", hint: "Use * for wildcard searches", input_html: { value: params.dig(:search, :reason_matches) } %>
<%= f.input :post_tags_match, label: "Tags", input_html: { value: params.dig(:search, :post_tags_match), data: { autocomplete: "tag-query" } } %>
<%= f.input :post_id, label: "Post ID", input_html: { value: params.dig(:search, :post_id) } %>
<% if CurrentUser.is_moderator? %>
<% if CurrentUser.is_janitor? %>
<%= f.input :creator_name, label: "Creator", input_html: { value: params.dig(:search, :creator_name), data: { autocomplete: "user" } } %>
<% end %>
<%= f.input :is_resolved, label: "Resolved?", collection: [["Yes", true], ["No", false]], include_blank: true, selected: params.dig(:search, :is_resolved) %>

View File

@ -110,7 +110,7 @@
</tr>
<% if CurrentUser.user.id == user.id || CurrentUser.is_moderator? %>
<% if CurrentUser.user.id == user.id || CurrentUser.is_janitor? %>
<tr>
<th>Appeals</th>
<td><%= presenter.appeal_count(self) %></td>