eBooru/app/views/comments/_search.html.erb
Donovan Daniels b89fc1428e
[Comments] Add "Post Uploader" to search options (#598)
* [Comments] Add "Post Uploader" to search options

* Use block with where_user
2024-02-14 16:10:45 +01:00

18 lines
1.1 KiB
Plaintext

<%= form_search(path: comments_path) do |f| %>
<%= hidden_field_tag "group_by", "comment", id: "group_by_full" %>
<%= f.user :creator, label: "Commenter" %>
<%= f.input :body_matches, label: "Body" %>
<%= f.input :post_tags_match, label: "Tags", autocomplete: "tag-query" %>
<%= f.user :post_note_updater, label: "Post Note Updater", hide_unless_value: true %>
<%= f.user :poster, label: "Post Uploader", hide_unless_value: true %>
<% if CurrentUser.is_admin? %>
<%= f.input :ip_addr, label: "IP Address" %>
<% end %>
<% if CurrentUser.is_moderator? %>
<%= f.input :is_hidden, label: "Hidden?", collection: [["Yes", true], ["No", false]], include_blank: true %>
<% end %>
<%= f.input :is_sticky, label: "Sticky?", collection: [["Yes", true], ["No", false]], include_blank: true %>
<%= f.input :do_not_bump_post, label: "Bumping?", collection: [["Yes", false], ["No", true]], include_blank: true %>
<%= f.input :order, include_blank: false, collection: [%w[Created id_desc], %w[Updated updated_at_desc], %w[Score score_desc], %w[Post post_id_desc]] %>
<% end %>