Fix back links when viewing a broadcast

Where you go back to from a broadcast can now depend on whether it’s
a current or previous broadcast.
This commit is contained in:
Chris Hill-Scott
2020-10-15 13:18:23 +01:00
parent b54d49196b
commit d793d08ae7
2 changed files with 9 additions and 1 deletions

View File

@@ -34,7 +34,7 @@
{% block maincolumn_content %}
{{ govukBackLink({ "href": url_for('.broadcast_dashboard', service_id=current_service.id) }) }}
{{ govukBackLink({ "href": back_link }) }}
{% if broadcast_message.status == 'pending-approval' %}
{% if broadcast_message.created_by == current_user and current_user.has_permissions('send_messages') %}