mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Merge pull request #2290 from alphagov/link-to-notification
Link to single notification page from API integration page
This commit is contained in:
@@ -9,5 +9,8 @@
|
||||
{% if notification.status|format_notification_status_as_url %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if sent_with_test_key %}
|
||||
(test)
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
{% from "components/table.html" import list_table, field, hidden_field_heading %}
|
||||
{% from "components/api-key.html" import api_key %}
|
||||
{% from "components/banner.html" import banner_wrapper %}
|
||||
{% from "components/message-count-label.html" import message_count_label %}
|
||||
|
||||
{% block service_page_title %}
|
||||
API integration
|
||||
@@ -73,8 +74,8 @@
|
||||
<dd class="api-notifications-item-data-item">{{ notification[key] }}</dd>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if notification['notification_type'] == 'letter' and notification.status not in ('pending-virus-check', 'virus-scan-failed') %}
|
||||
<a href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=notification.id) }}">View letter</a>
|
||||
{% if notification.status not in ('pending-virus-check', 'virus-scan-failed') %}
|
||||
<a href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=notification.id) }}">View {{ message_count_label(1, notification.template.template_type, suffix='') }}</a>
|
||||
{% endif %}
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user