mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 18:13:11 -04:00
Use template_type property directly from API
It’s included in the job/upload response now[1]. So we don’t need to fetch the template every time we want to access it. 1. https://github.com/alphagov/notifications-api/pull/2728
This commit is contained in:
@@ -25,21 +25,21 @@
|
||||
<div class="dashboard-table bottom-gutter-3-2">
|
||||
{% endif %}
|
||||
|
||||
{% if template.template_type == 'letter' %}
|
||||
{% if job.template_type == 'letter' %}
|
||||
<div class="keyline-block bottom-gutter-1-2">
|
||||
{% endif %}
|
||||
{% if job.still_processing %}
|
||||
<p class="{% if job.template.template_type != 'letter' %}bottom-gutter{% endif %} hint">
|
||||
<p class="{% if job.template_type != 'letter' %}bottom-gutter{% endif %} hint">
|
||||
Report is {{ "{:.0f}%".format(job.percentage_complete * 0.99) }} complete…
|
||||
</p>
|
||||
{% elif notifications %}
|
||||
<p class="{% if job.template.template_type != 'letter' %}bottom-gutter{% endif %}">
|
||||
<p class="{% if job.template_type != 'letter' %}bottom-gutter{% endif %}">
|
||||
<a href="{{ download_link }}" download class="govuk-link govuk-link--no-visited-state heading-small">Download this report</a>
|
||||
 
|
||||
<span id="time-left">{{ time_left }}</span>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if template.template_type == 'letter' %}
|
||||
{% if job.template_type == 'letter' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user