diff --git a/.last-branch b/.last-branch index 13abcc4..f412f8f 100644 --- a/.last-branch +++ b/.last-branch @@ -1 +1 @@ -v20260103-19-reports-output-format-html +v20260103-20-reports-export-html-open-new-tab diff --git a/containers/backupchecks/src/templates/main/reports.html b/containers/backupchecks/src/templates/main/reports.html index 5c23126..3e0de3a 100644 --- a/containers/backupchecks/src/templates/main/reports.html +++ b/containers/backupchecks/src/templates/main/reports.html @@ -53,7 +53,7 @@ Edit - Download + Download {% if active_role in ('admin','operator','reporter') %} {% endif %} @@ -394,7 +394,7 @@ function loadRawData() { 'Edit' + '' + '' + - 'Download' + + 'Download' + (canDeleteReports ? '' : '') + '';; diff --git a/docs/changelog.md b/docs/changelog.md index 9a9b23a..f98f049 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -172,6 +172,14 @@ - Updated the Reports overview to use the new generic export endpoint (no longer hardcoded to export.csv). - Added ReportLab dependency for PDF generation. +--- + +## v20260103-20-reports-export-html-open-new-tab + +- Fixed report export logic so the selected output format is always respected. +- Ensured the export URL explicitly includes the chosen format parameter (CSV, PDF, HTML). +- Changed HTML report handling to open in a new browser tab instead of triggering a file download. +- Enabled proper inline rendering of HTML reports to support graphical preview and layout validation. ================================================================================================================================================