Fix "Data available for X days" text disappearing on job details page

This commit is contained in:
Beverly Nguyen
2025-10-07 13:33:25 -07:00
parent 46b16d6a95
commit b83416d281
2 changed files with 6 additions and 1 deletions

View File

@@ -77,6 +77,11 @@ def view_job(service_id, job_id):
counts=_get_job_counts(job),
notifications=notifications,
more_than_one_page=more_than_one_page,
uploaded_file_name=job.original_file_name,
time_left=get_time_left(job.created_at),
service_data_retention_days=current_service.get_days_of_retention(
job.template_type, number_of_days="seven_day"
),
download_link=(
url_for(
".view_job_csv",

View File

@@ -30,7 +30,7 @@
</p>
{% elif notifications and time_left != "Data no longer available" %}
<p class="margin-bottom-3">
<a href="{{ download_link }}" download class="usa-link font-heading-md">Download this report (<abbr title="Comma separated values">CSV</abbr>)</a>
<a href="{{ download_link }}" download class="usa-link">Download this report (<abbr title="Comma separated values">CSV</abbr>)</a>
&emsp;
<span id="time-left">{{ time_left }}</span>
</p>