forked from e621ng/e621ng
parent
ddd408ce2c
commit
e649523400
@ -9,7 +9,7 @@ class StaffNotesController < ApplicationController
|
||||
|
||||
def index
|
||||
@user = User.find_by(id: params[:user_id])
|
||||
@notes = StaffNote.search(search_params.merge({ user_id: params[:user_id] })).includes(:user, :creator).paginate(params[:page], limit: params[:limit])
|
||||
@notes = StaffNote.search(search_params).includes(:user, :creator).paginate(params[:page], limit: params[:limit])
|
||||
respond_with(@notes)
|
||||
end
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<%= form_search(path: mod_actions_path) do |f| %>
|
||||
<%= f.user :creator %>
|
||||
<%= f.input :action, label: "Action", collection: ModAction::KnownActionKeys.reject { |k| !CurrentUser.is_staff? && ModAction::ProtectedActionKeys.include?(k) }.map { |k| [k.to_s.capitalize.tr("_", " "), k.to_s] }, include_blank: true %>
|
||||
<%= f.input :action, label: "Action", collection: ModAction::KnownActionKeys.reject { |k| !CurrentUser.is_staff? && ModAction::ProtectedActionKeys.include?(k.to_s) }.map { |k| [k.to_s.capitalize.tr("_", " "), k.to_s] }, include_blank: true %>
|
||||
<% end %>
|
||||
|
Loading…
Reference in New Issue
Block a user