Fix up a couple mods backend things (#3861)

This commit is contained in:
Ben Halpern 2019-08-28 08:09:29 -04:00 committed by GitHub
parent 9ad383c00e
commit b09fa26efa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -162,6 +162,7 @@
.notification-new-post-title {
font-size: 1.7em;
word-wrap: break-word;
line-height: 1.06em;
}
.notification-new-post-tags {
margin-top: 6px;

View file

@ -3,9 +3,9 @@ class Internal::ModsController < Internal::ApplicationController
def index
@mods = if params[:state] == "tag"
User.with_role(:tag_moderator).page(params[:page]).per(50)
User.with_role(:tag_moderator, :any).page(params[:page]).per(50)
elsif params[:state] == "potential"
User.without_role(:trusted).order("comments_count DESC").page(params[:page]).per(50)
User.order("comments_count DESC").page(params[:page]).per(100)
else
User.with_role(:trusted).page(params[:page]).per(50)
end

View file

@ -38,7 +38,7 @@
<div><a href="/internal/users/<%= user.id %>">@<%= user.username %></a></div>
<div><%= user.comments_count %></div>
<div><%= user.reactions_count %></div>
<% if params[:state] == "potential" %>
<% if params[:state] == "potential" && !user.trusted %>
<div>
<%= form_for([:internal, user], url: "/internal/mods/#{user.id}", method: :patch) do |f| %>
<%#= f.hidden_field :id, value: user.id %>