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.
This commit is contained in:
Chris Hill-Scott
2016-05-26 17:05:16 +01:00
parent 623ef5617e
commit 769acbf2b9
2 changed files with 1 additions and 26 deletions

View File

@@ -10,9 +10,7 @@
<h1 class="visuallyhidden">Dashboard</h1>
{% 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 %}

View File

@@ -1,23 +0,0 @@
{% from "components/banner.html" import banner_wrapper %}
{% if current_user.has_permissions(['manage_templates']) %}
{% call banner_wrapper(type='tour') %}
<h2 class="heading-large">Youre ready to get started</h2>
<p>
<a href='{{ url_for(".add_service_template", service_id=current_service.id, template_type="sms") }}'>
Set up a text message template
</a>
</p>
<p>
<a href='{{ url_for(".add_service_template", service_id=current_service.id, template_type="email") }}'>
Set up an email template
</a>
</p>
{% endcall %}
{% else %}
{% call banner_wrapper(type='mode') %}
<p>
You need to ask your service manager to set up some templates before you can send messages
</p>
{% endcall %}
{% endif %}