mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 16:08:24 -04:00
Refactor service name code to reduce duplication
This makes the code shareable between: - the broadcast tour pages - the broadcast settings platform admin page - the regular service navigation On the training mode tour pages we don’t want to confuse people with the organisation name or _Switch service_ links, so those are omitted and the code is therefore slightly different.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{% from "components/banner.html" import banner_wrapper %}
|
||||
{% from "service_navigation.html" import navigation_service_name %}
|
||||
|
||||
{% extends "admin_template.html" %}
|
||||
|
||||
@@ -11,9 +12,7 @@
|
||||
{% block content %}
|
||||
|
||||
<div class="navigation-service">
|
||||
<div class="navigation-service-name govuk-!-font-weight-bold">
|
||||
{{ current_service.name }} <span class="navigation-service-type navigation-service-type--training">Training</span>
|
||||
</div>
|
||||
{{ navigation_service_name(current_service) }}
|
||||
</div>
|
||||
|
||||
<div class="banner-tour banner-tour-no-fixed-height banner-tour-with-service-name">
|
||||
|
||||
@@ -10,11 +10,7 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="navigation-service">
|
||||
<div class="navigation-service-name govuk-!-font-weight-bold">
|
||||
{{ current_service.name }} <span class="navigation-service-type navigation-service-type--training">Training</span>
|
||||
</div>
|
||||
</div>
|
||||
{% include "service_navigation.html" %}
|
||||
|
||||
<div class="banner-tour banner-tour-no-fixed-height banner-tour-with-service-name">
|
||||
<div class="govuk-grid-row">
|
||||
|
||||
Reference in New Issue
Block a user