From 3489f08ec5442cbf10bdd19ca0e421cd225f3089 Mon Sep 17 00:00:00 2001 From: Konrad Date: Tue, 25 Oct 2022 00:31:00 +0200 Subject: [PATCH] Format reports as list, even if only one sub-type available --- app/views/admin/reports/index.html.haml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/admin/reports/index.html.haml b/app/views/admin/reports/index.html.haml index 9ec68931fa..04bb24c088 100644 --- a/app/views/admin/reports/index.html.haml +++ b/app/views/admin/reports/index.html.haml @@ -14,7 +14,9 @@ = I18n.t(:name, scope: [:admin, :reports, report_type]) %td - if report_subtypes.empty? - - name = I18n.t(:name, scope: [:admin, :reports, report_type]) - - url = main_app.admin_report_url(report_type: report_type) - = link_to name, url + %ul{style: "margin-left: 12pt"} + %li + - name = I18n.t(:name, scope: [:admin, :reports, report_type]) + - url = main_app.admin_report_url(report_type: report_type) + = link_to name, url = render partial: "report_subtype", locals: { report_subtypes: report_subtypes, report_type: report_type }