diff options
author | ThibG <thib@sitedethib.com> | 2019-12-29 05:41:26 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-12-29 05:41:26 +0100 |
commit | 162dc845a04741f15d0d8ca70e17f1ee9ed38841 (patch) | |
tree | 54b46e9519b0c7cc15e9eddee5a681816abff5dd /app/views/admin/tags/_tag.html.haml | |
parent | 31f7c3fc5d9bf24fc79f3246a0de2cc907ecb34d (diff) |
Fix batch actions on non-pending tags in admin interface (#12537)
- Allow batch actions on unreviewed tags - Hide checkboxes when batch actions aren't available
Diffstat (limited to 'app/views/admin/tags/_tag.html.haml')
-rw-r--r-- | app/views/admin/tags/_tag.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/admin/tags/_tag.html.haml b/app/views/admin/tags/_tag.html.haml index 670f3bc05..287d28e53 100644 --- a/app/views/admin/tags/_tag.html.haml +++ b/app/views/admin/tags/_tag.html.haml @@ -1,6 +1,7 @@ .batch-table__row - %label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox - = f.check_box :tag_ids, { multiple: true, include_hidden: false }, tag.id + - if batch_available + %label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox + = f.check_box :tag_ids, { multiple: true, include_hidden: false }, tag.id .directory__tag = link_to admin_tag_path(tag.id) do |