Use the report type or subtype as the title

This commit is contained in:
Jean-Baptiste Bellet
2022-10-20 15:29:50 +02:00
parent 6dec80aaaf
commit e2441cdcf6
3 changed files with 12 additions and 0 deletions

View File

@@ -43,6 +43,11 @@ module Admin
@report_type = report_type
@report_subtypes = report_subtypes
@report_subtype = report_subtype
@report_title = if report_subtype
report_subtype_title
else
I18n.t(:name, scope: [:admin, :reports, @report_type])
end
# Initialize data
params[:display_summary_row] = true if request.get?