From e234ed97417def22b3c7fd3c1d3356f0a97da302 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 23 Aug 2016 15:47:43 +0100 Subject: [PATCH] Make live and research mode switches into buttons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They change state, so they should be buttons (even if they’re still links). --- app/templates/views/service-settings.html | 27 +++++++++++------------ 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/app/templates/views/service-settings.html b/app/templates/views/service-settings.html index b9ad9bff1..9f4afcfab 100644 --- a/app/templates/views/service-settings.html +++ b/app/templates/views/service-settings.html @@ -64,23 +64,22 @@ { 'title': 'Email branding', 'link': url_for('.service_set_branding_and_org', service_id=current_service.id) - }, - { - 'title': 'Make service live', - 'link': url_for('.service_switch_live', service_id=current_service.id) - } if current_service.restricted else { - 'title': 'Revert service to trial', - 'link': url_for('.service_switch_live', service_id=current_service.id) - }, - { - 'title': 'Put service into research mode', - 'link': url_for('.service_switch_research_mode', service_id=current_service.id) - } if not current_service.research_mode else { - 'title': 'Take service out of research mode', - 'link': url_for('.service_switch_research_mode', service_id=current_service.id) } ]) }} + + {% endif %} {% endblock %}