Link to failure reasons from job/activity pages

If something has failed and you don’t know why, you should be able to
find out why. Let’s try adding a link to the page explaining why, so
it’s not just buried in the footer.
This commit is contained in:
Chris Hill-Scott
2016-07-11 13:53:55 +01:00
parent d22b2f678d
commit 5f67560b1e
4 changed files with 27 additions and 1 deletions

View File

@@ -34,7 +34,13 @@
align='right',
status=item.status|format_notification_status_as_field_status
) %}
{% if item.status|format_notification_status_as_url %}
<a href="{{ item.status|format_notification_status_as_url }}">
{% endif %}
{{ item.status|format_notification_status(item.template.template_type) }}
{% if item.status|format_notification_status_as_url %}
</a>
{% endif %}
{% endcall %}
{% endcall %}

View File

@@ -42,6 +42,8 @@ Delivery and failure GOV.UK Notify
<p><strong>You need to remove these email addresses or phone numbers from your database.</strong></p>
<a id="not-accepting-messages"></a>
<h2 id="inbox-not-accepting-messages" class="heading-medium">Inbox not accepting messages right now</h2>
<p>This can happen for a number of reasons, eg the users inbox was full.</p>

View File

@@ -73,7 +73,13 @@
) }}
{% call field(status=item.status|format_notification_status_as_field_status, align='right') %}
{% if item.status|format_notification_status_as_url %}
<a href="{{ item.status|format_notification_status_as_url }}">
{% endif %}
{{ item.status|format_notification_status(item.template.template_type) }}
{% if item.status|format_notification_status_as_url %}
</a>
{% endif %}
{% endcall %}
{% endcall %}