forked from e621ng/e621ng
[Users] Link to flag creator id search by default
Also exposes that field in the search form
This commit is contained in:
parent
dfd17b5f86
commit
e25878b03f
@ -131,7 +131,7 @@ class UserPresenter
|
||||
end
|
||||
|
||||
def flag_count(template)
|
||||
template.link_to(user.flag_count, template.post_flags_path(:search => {:creator_name => user.name}))
|
||||
template.link_to(user.flag_count, template.post_flags_path( search: { creator_id: user.id }))
|
||||
end
|
||||
|
||||
def approval_count(template)
|
||||
|
@ -4,6 +4,7 @@
|
||||
<%= f.input :post_id, label: "Post ID" %>
|
||||
<% if CurrentUser.is_janitor? %>
|
||||
<%= f.input :creator_name, label: "Creator", autocomplete: "user" %>
|
||||
<%= f.input :creator_id, label: "Creator ID", hide_unless_value: true %>
|
||||
<%= f.input :ip_addr, label: "Ip Address" %>
|
||||
<% end %>
|
||||
<%= f.input :is_resolved, label: "Resolved?", collection: [["Yes", true], ["No", false]], include_blank: true %>
|
||||
|
Loading…
Reference in New Issue
Block a user