From 15611d67d3f037296b5eebb7fd017ad99e052e15 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 10 Jul 2020 14:19:33 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20=E2=80=98Stop=E2=80=99=20links=20from?= =?UTF-8?q?=20dashboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now you have to click in to cancel a broadcast instead. --- app/templates/views/broadcast/dashboard.html | 3 +-- tests/app/main/views/test_broadcast.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/templates/views/broadcast/dashboard.html b/app/templates/views/broadcast/dashboard.html index f27680b48..a7b31722e 100644 --- a/app/templates/views/broadcast/dashboard.html +++ b/app/templates/views/broadcast/dashboard.html @@ -25,9 +25,8 @@ {% endcall %} {% call field(align='right') %} {% if item.status == 'broadcasting' %} -

+

Live until {{ item.finishes_at|format_datetime_relative }} - Stop broadcasting

{% elif item.status == 'cancelled' %}

diff --git a/tests/app/main/views/test_broadcast.py b/tests/app/main/views/test_broadcast.py index c2d58d0d6..4fb75a2a7 100644 --- a/tests/app/main/views/test_broadcast.py +++ b/tests/app/main/views/test_broadcast.py @@ -78,7 +78,7 @@ def test_broadcast_dashboard( assert [ normalize_spaces(row.text) for row in page.select('table')[0].select('tbody tr') ] == [ - 'Example template To England and Scotland Live until tomorrow at 2:20am Stop broadcasting', + 'Example template To England and Scotland Live until tomorrow at 2:20am', ] assert [ normalize_spaces(row.text) for row in page.select('table')[1].select('tbody tr')