Add H1 to sent messages page

> Suggest making the H1 visible here for consistency, but also to make
> it clear to users what they’re looking at.

> This screen is similar to – but not exactly the same as – the
> individual text, email and letter dashboard screens from Admin view,
> so the H1 could help to distinguish it from them for users who may
> have interacted with both.
This commit is contained in:
Chris Hill-Scott
2018-07-13 16:21:22 +01:00
parent ca9fe6c8f6
commit b946a6008d
2 changed files with 39 additions and 36 deletions

View File

@@ -4,16 +4,20 @@
{% from "components/page-footer.html" import page_footer %}
{% from "components/textbox.html" import textbox %}
{% set page_title = (
message_count_label(99, message_type, suffix='') | capitalize
if current_user.has_permissions('view_activity')
else 'Sent messages'
) %}
{% block service_page_title %}
{{ message_count_label(99, message_type, suffix='') | capitalize }}
{{ page_title }}
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">
{% if not current_user.has_permissions('view_activity') %}<span class="visually-hidden">{% endif %}
{{ message_count_label(99, message_type, suffix='') | capitalize }}
{% if not current_user.has_permissions('view_activity') %}</span>{% endif %}
{{ page_title }}
</h1>
{% if not message_type == "letter" %}