Merge branch 'service-name-in-title'

This commit is contained in:
Chris Hill-Scott
2017-02-14 11:54:44 +00:00
79 changed files with 165 additions and 162 deletions

View File

@@ -9,7 +9,7 @@
margin: 0 0 10px;
position: relative;
h2 {
&-name {
@include bold-19;
margin: 0 0 0 0;
}

View File

@@ -20,7 +20,7 @@
{% endblock %}
{% block page_title %}
GOV.UK Notify admin
{% block per_page_title %}{% endblock %} GOV.UK Notify
{% endblock %}
{% block cookie_message %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
{{heading}} GOV.UK Notify
{% block per_page_title %}
{{ heading }}
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,8 +1,8 @@
{% extends "withoutnav_template.html" %}
{% from "components/browse-list.html" import browse_list %}
{% block page_title %}
All service GOV.UK Notify
{% block per_page_title %}
All services
{% endblock %}
{% block maincolumn_content %}
@@ -13,4 +13,4 @@
{{ browse_list(services) }}
{% endblock %}
{% endblock %}

View File

@@ -3,8 +3,8 @@
{% from "components/api-key.html" import api_key %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
API integration GOV.UK Notify
{% block service_page_title %}
Documentation
{% endblock %}
{% block maincolumn_content %}

View File

@@ -3,8 +3,8 @@
{% from "components/api-key.html" import api_key %}
{% from "components/banner.html" import banner_wrapper %}
{% block page_title %}
API integration GOV.UK Notify
{% block service_page_title %}
API integration
{% endblock %}
{% block maincolumn_content %}

View File

@@ -3,8 +3,8 @@
{% from "components/api-key.html" import api_key %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
API integration GOV.UK Notify
{% block service_page_title %}
API keys
{% endblock %}
{% block maincolumn_content %}

View File

@@ -4,8 +4,8 @@
{% from "components/radios.html" import radios %}
{% from "components/banner.html" import banner_wrapper %}
{% block page_title %}
Create an API key GOV.UK Notify
{% block service_page_title %}
Create an API key
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/page-footer.html" import page_footer %}
{% from "components/api-key.html" import api_key %}
{% block page_title %}
Revoke API key GOV.UK Notify
{% block service_page_title %}
Revoke API key
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/page-footer.html" import page_footer %}
{% from "components/api-key.html" import api_key %}
{% block page_title %}
New API key GOV.UK Notify
{% block service_page_title %}
New API key
{% endblock %}
{% block maincolumn_content %}

View File

@@ -5,8 +5,8 @@
{% from "components/page-footer.html" import page_footer %}
{% from "components/list-entry.html" import list_entry %}
{% block page_title %}
API integration GOV.UK Notify
{% block service_page_title %}
Whitelist
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,5 +1,5 @@
{% extends "withoutnav_template.html" %}
{% block page_title %}Invitation has been cancelled{% endblock %}
{% block per_page_title %}Invitation has been cancelled{% endblock %}
{% block maincolumn_content %}
<div class="grid-row">
<div class="column-two-thirds">

View File

@@ -1,7 +1,7 @@
{% extends "withoutnav_template.html" %}
{% block page_title %}
Check your email GOV.UK Notify
{% block per_page_title %}
Check your email
{% endblock %}
{% block maincolumn_content %}
@@ -10,4 +10,4 @@
<p>An email has been sent to {{ new_email }}.</p>
<p>Click the link in the email to confirm the change to your email address.</p>
{% endblock %}
{% endblock %}

View File

@@ -14,8 +14,8 @@
</p>
{% endmacro %}
{% block page_title %}
{{ "Error" if errors else "Preview" }} GOV.UK Notify
{% block service_page_title %}
{{ "Error" if errors else "Preview" }}
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,8 +1,8 @@
{% extends "withoutnav_template.html" %}
{% from "components/browse-list.html" import browse_list %}
{% block page_title %}
Choose service GOV.UK Notify
{% block per_page_title %}
Choose service
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,7 +1,7 @@
{% extends "withoutnav_template.html" %}
{% block page_title %}
Cookies GOV.UK Notify
{% block per_page_title %}
Cookies
{% endblock %}
{% block maincolumn_content %}

View File

@@ -6,8 +6,8 @@
{% from "components/table.html" import list_table, field, right_aligned_field_heading, hidden_field_heading %}
{% from "components/ajax-block.html" import ajax_block %}
{% block page_title %}
Dashboard GOV.UK Notify
{% block service_page_title %}
Dashboard
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,7 +1,7 @@
{% extends "withoutnav_template.html" %}
{% block page_title %}
Delivery and failure GOV.UK Notify
{% block per_page_title %}
Delivery and failure
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,8 +1,8 @@
{% from "components/banner.html" import banner_wrapper %}
{% extends "withoutnav_template.html" %}
{% block page_title %}
Design patterns and content guidance GOV.UK Notify
{% block per_page_title %}
Design patterns and content guidance
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,7 +1,7 @@
{% extends "withoutnav_template.html" %}
{% block page_title %}
API documentation GOV.UK Notify
{% block per_page_title %}
API documentation
{% endblock %}
{% block maincolumn_content %}

View File

@@ -3,8 +3,8 @@
{% from "components/page-footer.html" import page_footer %}
{% from "components/radios.html" import radios %}
{% block page_title %}
{{ heading_action }} email template GOV.UK Notify
{% block service_page_title %}
{{ heading_action }} email template
{% endblock %}
{% block maincolumn_content %}
@@ -33,7 +33,7 @@
<aside class="column-whole">
{% include "partials/templates/guidance-formatting.html" %}
{% include "partials/templates/guidance-personalisation.html" %}
{% include "partials/templates/guidance-optional-content.html" %}
{% include "partials/templates/guidance-optional-content.html" %}
{% include "partials/templates/guidance-links.html" %}
</aside>
</div>

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
{{ heading_action }} letter template GOV.UK Notify
{% block service_page_title %}
{{ heading_action }} letter template
{% endblock %}
{% block maincolumn_content %}

View File

@@ -3,8 +3,8 @@
{% from "components/page-footer.html" import page_footer %}
{% from "components/radios.html" import radios %}
{% block page_title %}
{{ heading_action }} text message template GOV.UK Notify
{% block service_page_title %}
{{ heading_action }} text message template
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Manage users GOV.UK Notify
{% block service_page_title %}
Manage users
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Create a new password GOV.UK Notify
{% block per_page_title %}
Create a new password
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,8 +1,8 @@
{% from "components/banner.html" import banner_wrapper %}
{% extends "withoutnav_template.html" %}
{% block page_title %}
Information security guidelines GOV.UK Notify
{% block per_page_title %}
Information security guidelines
{% endblock %}
{% block maincolumn_content %}
@@ -139,7 +139,7 @@ Information security guidelines GOV.UK Notify
<p>If you need to send someone a file, make the file available within your service, then link to it.</p>
<h3 class="heading-small" id="guideline-name">Include the users name it makes phishing more difficult</h3>
<p>Start your message by addressing the user. For example, Hi Alice Smith, or Dear Bob Jones. Including this extra piece of information makes phishing more difficult.</p>
@@ -152,10 +152,10 @@ Information security guidelines GOV.UK Notify
<p>TLS makes sure that no-one can intercept your emails.</p>
</section>
<section id="examples">
<h2 class="heading-medium">Examples</h2>
<h3 class="heading-small">Example of an appointment reminder</h3>
<p>“Dear Anne Smith, youve got a licence appointment tomorrow at 2:15pm at the Licence Office, 1 Chapel Hill, Heswall, Bournemouth BH1 1AA. To cancel your appointment, visit licensing.service.gov.uk/appointment/12345678/cancel. To change your appointment time, sign in to your account.”</p>
<p>This is a good example because:</p>
@@ -167,8 +167,8 @@ Information security guidelines GOV.UK Notify
<li>users have to sign in to change the appointment time, making it harder for an attacker to know what their appointment time is</li>
<li>the topic is something the user is familiar with</li>
</ul>
<h3 class="heading-small">Example to add a photo to an environmental permit</h3>
<p>“Dear Andrew Jones, to add a location photo to your environmental permit application, visit environmentalpermit.service.gov.uk/12345678/add-photo. If you didnt request this link, please ignore this message.”</p>
<p>This is a good example because:</p>
@@ -180,7 +180,7 @@ Information security guidelines GOV.UK Notify
<li>it shows users what to do if the message doesn't apply to them</li>
</ul>
</section>
<section id="you-can-do-more">
<h2 class="heading-medium">You can do more if you want to</h2>

View File

@@ -1,8 +1,8 @@
{% from "components/table.html" import mapping_table, row, text_field, edit_field, field %}
{% extends "withoutnav_template.html" %}
{% block page_title %}
Integration testing - GOV.UK Notify
{% block per_page_title %}
Integration testing
{% endblock %}
{% block maincolumn_content %}

View File

@@ -3,8 +3,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Manage users GOV.UK Notify
{% block service_page_title %}
Manage users
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/banner.html" import banner %}
{% from "components/ajax-block.html" import ajax_block %}
{% block page_title %}
{{ uploaded_file_name }} GOV.UK Notify
{% block service_page_title %}
{{ uploaded_file_name }}
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,8 +1,8 @@
{% from "components/previous-next-navigation.html" import previous_next_navigation %}
{% extends "withnav_template.html" %}
{% block page_title %}
Notifications activity GOV.UK Notify
{% block service_page_title %}
Uploaded files
{% endblock %}
{% block maincolumn_content %}

View File

@@ -11,8 +11,8 @@
'caption_visible': True
} %}
{% block page_title %}
Manage users GOV.UK Notify
{% block service_page_title %}
Manage users
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Create a new password GOV.UK Notify
{% block per_page_title %}
Create a new password
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/ajax-block.html" import ajax_block %}
{% from "components/message-count-label.html" import message_count_label, recipient_count_label %}
{% block page_title %}
{{ message_count_label(99, message_type, suffix='') | capitalize }} GOV.UK Notify
{% block service_page_title %}
{{ message_count_label(99, message_type, suffix='') | capitalize }}
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,7 +1,7 @@
{% extends "withoutnav_template.html" %}
{% block page_title %}
GOV.UK Notify
{% block per_page_title %}
Check your email
{% endblock %}
{% block maincolumn_content %}

View File

@@ -80,8 +80,8 @@
{% endmacro %}
{% block page_title %}
Platform admin GOV.UK Notify
{% block per_page_title %}
Platform admin
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,7 +1,7 @@
{% extends "withoutnav_template.html" %}
{% block page_title %}
Pricing GOV.UK Notify
{% block per_page_title %}
Pricing
{% endblock %}
{% block maincolumn_content %}

View File

@@ -3,8 +3,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Provider - {{provider.display_name}} GOV.UK Notify
{% block per_page_title %}
Provider - {{provider.display_name}}
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,8 +1,8 @@
{% extends "withoutnav_template.html" %}
{% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading %}
{% block page_title %}
Providers GOV.UK Notify
{% block per_page_title %}
Providers
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Create an account GOV.UK Notify
{% block per_page_title %}
Create an account
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Create an account GOV.UK Notify
{% block per_page_title %}
Create an account
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,7 +1,7 @@
{% extends "withoutnav_template.html" %}
{% block page_title %}
Check your email GOV.UK Notify
{% block per_page_title %}
Check your email
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Check your email GOV.UK Notify
{% block per_page_title %}
Check your email
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,8 +1,8 @@
{% extends "withnav_template.html" %}
{% from "components/api-key.html" import api_key %}
{% block page_title %}
API info GOV.UK Notify
{% block service_page_title %}
API info
{% endblock %}
{% block maincolumn_content %}

View File

@@ -3,12 +3,12 @@
{% from "components/file-upload.html" import file_upload %}
{% from "components/table.html" import list_table, field, text_field, index_field, index_field_heading %}
{% block page_title %}
{% block service_page_title %}
{% if request.args['help'] %}
Example text message
{% else %}
Send yourself a test
{% endif %} GOV.UK Notify
{% endif %}
{% endblock %}
{% block maincolumn_content %}

View File

@@ -3,8 +3,8 @@
{% from "components/file-upload.html" import file_upload %}
{% from "components/table.html" import list_table, text_field, index_field, index_field_heading %}
{% block page_title %}
Upload recipients GOV.UK Notify
{% block service_page_title %}
Upload recipients
{% endblock %}
{% block maincolumn_content %}

View File

@@ -3,8 +3,8 @@
{% from "components/browse-list.html" import browse_list %}
{% from "components/table.html" import mapping_table, row, text_field, edit_field, field %}
{% block page_title %}
Settings GOV.UK Notify
{% block service_page_title %}
Settings
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
{{ heading }} GOV.UK Notify
{% block service_page_title %}
{{ heading }}
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,8 +1,8 @@
{% extends "withnav_template.html" %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Delete service GOV.UK Notify
{% block service_page_title %}
Delete service
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Change your service name GOV.UK Notify
{% block service_page_title %}
Change your service name
{% endblock %}
{% block maincolumn_content %}

View File

@@ -4,8 +4,8 @@
{% from "components/page-footer.html" import page_footer %}
{% from "components/banner.html" import banner_wrapper %}
{% block page_title %}
Request to go live GOV.UK Notify
{% block service_page_title %}
Request to go live
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/radios.html" import radios, branding_radios %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Set branding and organisation GOV.UK Notify
{% block service_page_title %}
Set branding and organisation
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Email reply to address GOV.UK Notify
{% block service_page_title %}
Email reply to address
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Set text message sender name GOV.UK Notify
{% block service_page_title %}
Text message sender
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Sign in GOV.UK Notify
{% block per_page_title %}
Sign in
{% endblock %}
{% block maincolumn_content %}

View File

@@ -10,8 +10,8 @@
{% from "components/api-key.html" import api_key %}
{% from "components/list.html" import formatted_list %}
{% block page_title %}
Styleguide GOV.UK Notify
{% block per_page_title %}
Styleguide
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Out of hours emergencies GOV.UK Notify
{% block per_page_title %}
Out of hours emergencies
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/radios.html" import radios %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Support GOV.UK Notify
{% block per_page_title %}
Support
{% endblock %}
{% block maincolumn_content %}

View File

@@ -3,8 +3,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Report a problem GOV.UK Notify
{% block per_page_title %}
Report a problem
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Ask a question or give feedback GOV.UK Notify
{% block per_page_title %}
Ask a question or give feedback
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Thanks for contacting us GOV.UK Notify
{% block per_page_title %}
Thanks for contacting us
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/radios.html" import radios %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Feedback GOV.UK Notify
{% block per_page_title %}
Feedback
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/page-footer.html" import page_footer %}
{% from "components/table.html" import list_table, field %}
{% block page_title %}
History GOV.UK Notify
{% block service_page_title %}
Service and API key history
{% endblock %}
{% block maincolumn_content %}

View File

@@ -4,8 +4,8 @@
{% from "components/table.html" import list_table, text_field, index_field, index_field_heading %}
{% from "components/list.html" import list_of_placeholders %}
{% block page_title %}
GOV.UK Notify
{% block service_page_title %}
Confirm changes
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,7 +1,7 @@
{% extends "withnav_template.html" %}
{% block page_title %}
{{ page_heading }} GOV.UK Notify
{% block service_page_title %}
{{ page_heading }}
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,7 +1,7 @@
{% extends "withnav_template.html" %}
{% block page_title %}
Previous versions GOV.UK Notify
{% block service_page_title %}
Previous versions
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/page-footer.html" import page_footer %}
{% from "components/textbox.html" import textbox %}
{% block page_title %}
{{ template.name }} GOV.UK Notify
{% block service_page_title %}
{{ template.name }}
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/page-footer.html" import page_footer %}
{% from "components/textbox.html" import textbox %}
{% block page_title %}
{{ template.name }} GOV.UK Notify
{% block service_page_title %}
{{ template.name }}
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,8 +1,8 @@
{% extends "withoutnav_template.html" %}
{% from "components/banner.html" import banner_wrapper %}
{% block page_title %}
Terms of use GOV.UK Notify
{% block per_page_title %}
Terms of use
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,7 +1,7 @@
{% extends "withoutnav_template.html" %}
{% block page_title %}
Check your mobile number GOV.UK Notify
{% block per_page_title %}
Check your mobile number
{% endblock %}
{% block maincolumn_content %}

View File

@@ -2,8 +2,8 @@
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Check your mobile number GOV.UK Notify
{% block per_page_title %}
Check your mobile number
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,7 +1,7 @@
{% extends "withoutnav_template.html" %}
{% block page_title %}
Trial mode GOV.UK Notify
{% block per_page_title %}
Trial mode
{% endblock %}
{% block maincolumn_content %}

View File

@@ -3,8 +3,8 @@
{% from "components/checkbox.html" import checkbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Text verification GOV.UK Notify
{% block per_page_title %}
Text verification
{% endblock %}
{% block maincolumn_content %}

View File

@@ -4,8 +4,8 @@
{% extends "withnav_template.html" %}
{% block page_title %}
Usage GOV.UK Notify
{% block service_page_title %}
Usage
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,8 +1,8 @@
{% extends "withoutnav_template.html" %}
{% from "components/table.html" import list_table, row, field %}
{% block page_title %}
Your profile GOV.UK Notify
{% block per_page_title %}
Your profile
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,7 +1,7 @@
{% extends "withoutnav_template.html" %}
{% block page_title %}
Resend verification code GOV.UK Notify
{% block per_page_title %}
Resend verification code
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,7 +1,7 @@
{% extends "withoutnav_template.html" %}
{% block page_title %}
Confirm your mobile number GOV.UK Notify
{% block per_page_title %}
Confirm your mobile number
{% endblock %}
{% block maincolumn_content %}

View File

@@ -1,11 +1,15 @@
{% extends "admin_template.html" %}
{% block per_page_title %}
{% block service_page_title %}{% endblock %} {{ current_service.name }}
{% endblock %}
{% block fullwidth_content %}
<div id="content">
<div class="navigation-service">
<h2 class="navigation-service-name">
<div class="navigation-service-name">
{{ current_service.name }}
</h2>
</div>
<a href="{{ url_for('main.choose_service') }}" class="navigation-service-switch">Switch service</a>
</div>
<div class="grid-row">

View File

@@ -105,7 +105,6 @@ def test_should_show_recent_templates_on_dashboard(
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
headers = [header.text.strip() for header in page.find_all('h2') + page.find_all('h1')]
assert 'Test Service' in headers
assert 'In the last 7 days' in headers
table_rows = page.find_all('tbody')[1].find_all('tr')

View File

@@ -102,7 +102,7 @@ def test_show_restricted_service(
response = logged_in_client.get(url_for('main.service_settings', service_id=service_one['id']))
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
assert page.find('h1').text == 'Settings'
assert page.find_all('h2')[1].text == 'Your service is in trial mode'
assert page.find_all('h2')[0].text == 'Your service is in trial mode'
def test_switch_service_to_live(