mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-08 19:41:19 -04:00
Rename variable to be more precise
This commit is contained in:
@@ -48,7 +48,7 @@ def broadcast_dashboard_previous(service_id):
|
||||
'views/broadcast/previous-broadcasts.html',
|
||||
broadcasts=BroadcastMessages(service_id).with_status('cancelled', 'completed'),
|
||||
empty_message='You do not have any previous alerts',
|
||||
single_endpoint='.view_previous_broadcast',
|
||||
view_broadcast_endpoint='.view_previous_broadcast',
|
||||
)
|
||||
|
||||
|
||||
@@ -66,13 +66,13 @@ def get_broadcast_dashboard_partials(service_id):
|
||||
'views/broadcast/partials/dashboard-table.html',
|
||||
broadcasts=broadcast_messages.with_status('pending-approval'),
|
||||
empty_message='You do not have any alerts waiting for approval',
|
||||
single_endpoint='.view_current_broadcast',
|
||||
view_broadcast_endpoint='.view_current_broadcast',
|
||||
),
|
||||
live_broadcasts=render_template(
|
||||
'views/broadcast/partials/dashboard-table.html',
|
||||
broadcasts=broadcast_messages.with_status('broadcasting'),
|
||||
empty_message='You do not have any live alerts at the moment',
|
||||
single_endpoint='.view_current_broadcast',
|
||||
view_broadcast_endpoint='.view_current_broadcast',
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
) %}
|
||||
{% call row_heading() %}
|
||||
<div class="file-list">
|
||||
<a class="file-list-filename-large govuk-link govuk-link--no-visited-state" href="{{ url_for(single_endpoint, service_id=current_service.id, broadcast_message_id=item.id) }}">{{ item.template_name }}</a>
|
||||
<a class="file-list-filename-large govuk-link govuk-link--no-visited-state" href="{{ url_for(view_broadcast_endpoint, service_id=current_service.id, broadcast_message_id=item.id) }}">{{ item.template_name }}</a>
|
||||
<span class="file-list-hint-large govuk-!-margin-bottom-1">
|
||||
{{ item.content }}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user