Merge pull request #751 from alphagov/fix-get-started

Fix get started banner on dashboard
This commit is contained in:
Chris Hill-Scott
2016-07-04 15:33:51 +01:00
committed by GitHub
5 changed files with 70 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ def service_dashboard(service_id):
return render_template(
'views/dashboard/dashboard.html',
updates_url=url_for(".service_dashboard_updates", service_id=service_id),
templates=service_api_client.get_service_templates(service_id)['data'],
partials=get_dashboard_partials(service_id)
)

View File

@@ -15,7 +15,6 @@
<div class="dashboard">
<h1 class="visuallyhidden">Dashboard</h1>
{% if current_user.has_permissions(['manage_templates'], admin_override=True) %}
{% if not templates %}
{% include 'views/dashboard/write-first-messages.html' %}

View File

@@ -10,7 +10,7 @@
</div>
<div class="column-half">
{% call banner_wrapper(type="mode") %}
<a href="{{ url_for('.choose_template', service_id=current_service.id, template_type='email') }}">Write a text message</a>
<a href="{{ url_for('.choose_template', service_id=current_service.id, template_type='sms') }}">Write a text message</a>
{% endcall %}
</div>
</nav>