/post_versions: add search form, tweak layout.

* Add search form above table.
* Move thumbnail to left of table when viewing history of single post.
* Remove unrelated links from subnav menu.
* Fix bugs with changed_tags search.
This commit is contained in:
evazion
2019-09-28 23:16:50 -05:00
parent e3b49a2a6d
commit dade1e67b0
6 changed files with 30 additions and 11 deletions

View File

@@ -183,7 +183,7 @@ class ApplicationRecord < ActiveRecord::Base
relation = relation.where_array_includes_any(name, items)
elsif params[:"#{name}_include_all"]
items = params[:"#{name}_include_any"].to_s.scan(/[^[:space:]]+/)
items = params[:"#{name}_include_all"].to_s.scan(/[^[:space:]]+/)
items = items.map(&:to_i) if type == :integer
relation = relation.where_array_includes_all(name, items)