diff --git a/.haml-lint_todo.yml b/.haml-lint_todo.yml index 97ce881aa08c916c931813994c01325a844d4bc8..ec0a9d3a49369b2a181c945e23384d9a42452ec8 100644 --- a/.haml-lint_todo.yml +++ b/.haml-lint_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `haml-lint --auto-gen-config` -# on 2023-07-18 11:12:23 -0400 using Haml-Lint version 0.48.0. +# on 2023-07-18 11:29:47 -0400 using Haml-Lint version 0.48.0. # The point is for the user to remove these configuration records # one by one as the lints are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -15,7 +15,7 @@ linters: UnnecessaryStringOutput: enabled: false - # Offense count: 64 + # Offense count: 63 RuboCop: enabled: false diff --git a/app/views/admin/accounts/index.html.haml b/app/views/admin/accounts/index.html.haml index d0897221db58428fd62c24a04b63928a42e71fb4..57d944b57a4ffbc3ffa367da47b4e1842e82dde4 100644 --- a/app/views/admin/accounts/index.html.haml +++ b/app/views/admin/accounts/index.html.haml @@ -47,7 +47,7 @@ %label.batch-table__toolbar__select.batch-checkbox-all = check_box_tag :batch_checkbox_all, nil, false .batch-table__toolbar__actions - - if @accounts.any? { |account| account.user_pending? } + - if @accounts.any?(&:user_pending?) = f.button safe_join([fa_icon('check'), t('admin.accounts.approve')]), name: :approve, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') } = f.button safe_join([fa_icon('times'), t('admin.accounts.reject')]), name: :reject, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }