Add additional advanced search operators

- Tag matches allows a user to search for a single tag
-- Since testing for multiple tags would require converting the "tags"
   string to an array which would most likely fail even for single tags
- Is new for quick searching of uploads or not uploads
This commit is contained in:
BrokenEagle
2020-03-28 04:29:12 +00:00
parent 6aa0adb738
commit 4d9eae0038
2 changed files with 19 additions and 0 deletions

View File

@@ -12,7 +12,9 @@
<%= f.input :parent_id %>
<%= f.input :rating %>
<%= f.input :source_ilike, label: "Source", hint: "Use * for wildcard" %>
<%= f.input :tag_matches, hint: "Use * for wildcard" %>
<%= f.input :version %>
<%= f.input :is_new, label: "Include uploads?", collection: [["Yes", nil], ["No", false], ["Only", true]], include_blank: false, hint: "I.e. the 1st versions of posts" %>
<%= f.input :rating_changed, as: :select %>
<%= f.input :parent_changed, as: :select %>
<%= f.input :source_changed, as: :select %>