Fix up a couple mods backend things (#3861)
This commit is contained in:
parent
9ad383c00e
commit
b09fa26efa
3 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue