From df03a00aec133b9b5412d782ff0a397976f5162f Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Fri, 18 Oct 2024 11:04:10 -0400 Subject: [PATCH] Reduce override values in haml lint configuration --- .haml-lint.yml | 4 ++-- .../admin/terms_of_service/previews/show.html.haml | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.haml-lint.yml b/.haml-lint.yml index 74d243a3ad..f94836a4fe 100644 --- a/.haml-lint.yml +++ b/.haml-lint.yml @@ -10,6 +10,6 @@ linters: MiddleDot: enabled: true LineLength: - max: 300 + max: 256 # Override default of 80 ViewLength: - max: 200 # Override default value of 100 inherited from rubocop + max: 128 # Override default of 100 diff --git a/app/views/admin/terms_of_service/previews/show.html.haml b/app/views/admin/terms_of_service/previews/show.html.haml index 48c94cb052..907ac32f45 100644 --- a/app/views/admin/terms_of_service/previews/show.html.haml +++ b/app/views/admin/terms_of_service/previews/show.html.haml @@ -16,5 +16,12 @@ %hr.spacer/ .content__heading__actions - = link_to t('admin.terms_of_service.preview.send_preview', email: current_user.email), admin_terms_of_service_test_path(@terms_of_service), method: :post, class: 'button button-secondary' - = link_to t('admin.terms_of_service.preview.send_to_all', count: @user_count, display_count: number_with_delimiter(@user_count)), admin_terms_of_service_distribution_path(@terms_of_service), method: :post, class: 'button', data: { confirm: t('admin.reports.are_you_sure') } + = link_to t('admin.terms_of_service.preview.send_preview', email: current_user.email), + admin_terms_of_service_test_path(@terms_of_service), + class: 'button button-secondary', + method: :post + = link_to t('admin.terms_of_service.preview.send_to_all', count: @user_count, display_count: number_with_delimiter(@user_count)), + admin_terms_of_service_distribution_path(@terms_of_service), + class: 'button', + data: { confirm: t('admin.reports.are_you_sure') }, + method: :post