mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Hide ‘Download this report’ link when no services
If an organisation doesn’t have any live services then there’s no data to download. To make things less confusing we should hide the link in this case. This commit also modifies the existing test so that the assertions are consistent.
This commit is contained in:
@@ -110,12 +110,12 @@
|
||||
{{ current_org.name }} has no live services on GOV.UK Notify
|
||||
</p>
|
||||
<div class="keyline-block govuk-!-margin-top-2"></div>
|
||||
{% else %}
|
||||
<div class="js-stick-at-bottom-when-scrolling">
|
||||
<p class="govuk-!-margin-bottom-1">
|
||||
<a href="{{ download_link }}" download="download" class="govuk-link govuk-link--no-visited-state govuk-!-font-weight-bold">Download this report</a>
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="js-stick-at-bottom-when-scrolling">
|
||||
<p class="govuk-!-margin-bottom-1">
|
||||
<a href="{{ download_link }}" download="download" class="govuk-link govuk-link--no-visited-state govuk-!-font-weight-bold">Download this report</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user