Merge pull request #1307 from GSA/notify-admin-1254

hide csv reports in job view if no data available (notify-admin-1254)
This commit is contained in:
Carlo Costino
2024-03-14 17:28:53 -04:00
committed by GitHub

View File

@@ -28,7 +28,7 @@
<p class="bottom-gutter hint"> <p class="bottom-gutter hint">
Report is {{ "{:.0f}%".format(job.percentage_complete * 0.99) }} complete… Report is {{ "{:.0f}%".format(job.percentage_complete * 0.99) }} complete…
</p> </p>
{% elif notifications %} {% elif notifications and time_left != "Data no longer available" %}
<p class="bottom-gutter"> <p class="bottom-gutter">
<a href="{{ download_link }}" download class="usa-link heading-small">Download this report (<abbr title="Comma separated values">CSV</abbr>)</a> <a href="{{ download_link }}" download class="usa-link heading-small">Download this report (<abbr title="Comma separated values">CSV</abbr>)</a>
&emsp; &emsp;