Rename variable to be more precise

This commit is contained in:
Chris Hill-Scott
2020-10-26 11:09:13 +00:00
parent 725df2e7fa
commit f3cf080a5c
2 changed files with 4 additions and 4 deletions

View File

@@ -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',
),
)

View File

@@ -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>