From 769acbf2b9334f52f017de0de670c5ec8122f62b Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 26 May 2016 17:05:16 +0100 Subject: [PATCH] Remove the get started banner from the dashboard We cover this stuff in the tour now. It can also show up if you delete all your templates. --- app/templates/views/dashboard/dashboard.html | 4 +--- .../views/dashboard/get-started.html | 23 ------------------- 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 app/templates/views/dashboard/get-started.html diff --git a/app/templates/views/dashboard/dashboard.html b/app/templates/views/dashboard/dashboard.html index 50b00e0a6..e79f0d8e6 100644 --- a/app/templates/views/dashboard/dashboard.html +++ b/app/templates/views/dashboard/dashboard.html @@ -10,9 +10,7 @@

Dashboard

- {% if not templates and current_user.has_permissions(['send_texts', 'send_emails', 'send_letters'], any_=True) %} - {% include 'views/dashboard/get-started.html' %} - {% elif current_user.has_permissions([ + {% if current_user.has_permissions([ 'manage_templates', 'manage_api_keys', 'manage_users', 'manage_settings '], any_=True, admin_override=True) %} {% if current_service.restricted %} diff --git a/app/templates/views/dashboard/get-started.html b/app/templates/views/dashboard/get-started.html deleted file mode 100644 index c35b1a2c7..000000000 --- a/app/templates/views/dashboard/get-started.html +++ /dev/null @@ -1,23 +0,0 @@ -{% from "components/banner.html" import banner_wrapper %} - -{% if current_user.has_permissions(['manage_templates']) %} - {% call banner_wrapper(type='tour') %} -

You’re ready to get started

-

- - Set up a text message template - -

-

- - Set up an email template - -

- {% endcall %} -{% else %} - {% call banner_wrapper(type='mode') %} -

- You need to ask your service manager to set up some templates before you can send messages -

- {% endcall %} -{% endif %}