mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 16:19:49 -04:00
Hide report on letter job
This commit is contained in:
@@ -24,16 +24,18 @@
|
|||||||
<div class="dashboard-table bottom-gutter-3-2">
|
<div class="dashboard-table bottom-gutter-3-2">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if percentage_complete < 100 %}
|
{% if template.template_type != 'letter' %}
|
||||||
<p class="bottom-gutter hint">
|
{% if percentage_complete < 100 %}
|
||||||
Report is {{ "{:.0f}%".format(percentage_complete * 0.99) }} complete…
|
<p class="bottom-gutter hint">
|
||||||
</p>
|
Report is {{ "{:.0f}%".format(percentage_complete * 0.99) }} complete…
|
||||||
{% elif notifications %}
|
</p>
|
||||||
<p class="bottom-gutter">
|
{% elif notifications %}
|
||||||
<a href="{{ download_link }}" download="download" class="heading-small">Download this report</a>
|
<p class="bottom-gutter">
|
||||||
 
|
<a href="{{ download_link }}" download="download" class="heading-small">Download this report</a>
|
||||||
<span id="time-left">{{ time_left }}</span>
|
 
|
||||||
</p>
|
<span id="time-left">{{ time_left }}</span>
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% call(item, row_number) list_table(
|
{% call(item, row_number) list_table(
|
||||||
|
|||||||
@@ -183,6 +183,8 @@ def test_should_show_letter_job(
|
|||||||
assert normalize_spaces(page.select('.keyline-block')[1].text) == (
|
assert normalize_spaces(page.select('.keyline-block')[1].text) == (
|
||||||
'6 January Estimated delivery date'
|
'6 January Estimated delivery date'
|
||||||
)
|
)
|
||||||
|
assert page.select('[download=download]') == []
|
||||||
|
assert page.select('.hint') == []
|
||||||
|
|
||||||
mock_get_notifications.assert_called_with(
|
mock_get_notifications.assert_called_with(
|
||||||
SERVICE_ONE_ID,
|
SERVICE_ONE_ID,
|
||||||
|
|||||||
Reference in New Issue
Block a user