mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-29 04:09:07 -04:00
Merge pull request #2164 from alphagov/rename-basic-nav
Improve navigation in basic view
This commit is contained in:
@@ -140,14 +140,8 @@ def choose_template(service_id, template_type='all'):
|
||||
)
|
||||
]
|
||||
|
||||
if current_user.has_permissions('view_activity'):
|
||||
page_title = 'Templates'
|
||||
else:
|
||||
page_title = 'Choose a template'
|
||||
|
||||
return render_template(
|
||||
'views/templates/choose.html',
|
||||
page_title=page_title,
|
||||
templates=templates_on_page,
|
||||
show_search_box=(len(templates_on_page) > 7),
|
||||
show_template_nav=has_multiple_template_types and (len(templates) > 2),
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
{% else %}
|
||||
<nav class="navigation">
|
||||
<ul>
|
||||
<li><a href="{{ url_for('.choose_template', service_id=current_service.id) }}" {{ casework_navigation.is_selected('send-one-off') }}>Send a message</a></li>
|
||||
<li><a href="{{ url_for('.choose_template', service_id=current_service.id) }}" {{ casework_navigation.is_selected('send-one-off') }}>Templates</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="{{ url_for('.view_notifications', service_id=current_service.id, status='sending,delivered,failed') }}" {{ casework_navigation.is_selected('sent-messages') }}>Sent messages</a></li>
|
||||
|
||||
@@ -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" %}
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
{% extends "withnav_template.html" %}
|
||||
|
||||
{% set page_title = 'Templates' %}
|
||||
|
||||
{% block service_page_title %}
|
||||
{{ page_title }}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user