diff --git a/app/assets/error_pages/5xx.html b/app/assets/error_pages/5xx.html
index d9d58530f..b84e0f729 100644
--- a/app/assets/error_pages/5xx.html
+++ b/app/assets/error_pages/5xx.html
@@ -17,7 +17,7 @@
href="/static/images/apple-touch-icon.png?a0f7e1b728a42016b247dc54ee40d055">
-
+
diff --git a/app/templates/base.html b/app/templates/base.html
index 4a6421afb..efa6c7408 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -10,7 +10,7 @@
{% block per_page_title %}{% endblock %} – Notify.gov
{% endblock %}
- {% include "new/components/head.html" %}
+ {% include "components/head.html" %}
@@ -32,8 +32,8 @@
{% block header %}
- {% include 'new/components/usa_banner.html' %}
- {% include 'new/components/header.html' %}
+ {% include 'components/usa_banner.html' %}
+ {% include 'components/header.html' %}
{% endblock %}
{% block main %}
@@ -47,7 +47,7 @@
{% endblock %}
{% block content %}
{% block flash_messages %}
- {% include 'new/components/flash_messages.html' %}
+ {% include 'components/flash_messages.html' %}
{% endblock %}
{% block maincolumn_content %}
@@ -78,7 +78,7 @@
{% set meta_suffix = "Built by the " + long_link + commit_hash %}
{% endif %}
- {% include "new/components/footer.html" %}
+ {% include "components/footer.html" %}
{% if current_user.is_authenticated %}
{% block sessionUserWarning %}
diff --git a/app/templates/new/components/flash_messages.html b/app/templates/components/flash_messages.html
similarity index 100%
rename from app/templates/new/components/flash_messages.html
rename to app/templates/components/flash_messages.html
diff --git a/app/templates/new/components/footer.html b/app/templates/components/footer.html
similarity index 100%
rename from app/templates/new/components/footer.html
rename to app/templates/components/footer.html
diff --git a/app/templates/new/components/head.html b/app/templates/components/head.html
similarity index 93%
rename from app/templates/new/components/head.html
rename to app/templates/components/head.html
index 3e99f73f5..d057cd201 100644
--- a/app/templates/new/components/head.html
+++ b/app/templates/components/head.html
@@ -16,7 +16,7 @@
-
+
@@ -30,7 +30,7 @@
{# google #}
-
+
{# pragma: allowlist secret #}
{% if g.hide_from_search_engines %}
{% endif %}
diff --git a/app/templates/new/components/header.html b/app/templates/components/header.html
similarity index 100%
rename from app/templates/new/components/header.html
rename to app/templates/components/header.html
diff --git a/app/templates/new/components/main_nav.html b/app/templates/components/main_nav.html
similarity index 100%
rename from app/templates/new/components/main_nav.html
rename to app/templates/components/main_nav.html
diff --git a/app/templates/new/components/org_nav.html b/app/templates/components/org_nav.html
similarity index 100%
rename from app/templates/new/components/org_nav.html
rename to app/templates/components/org_nav.html
diff --git a/app/templates/new/components/org_nav_breadcrumb.html b/app/templates/components/org_nav_breadcrumb.html
similarity index 100%
rename from app/templates/new/components/org_nav_breadcrumb.html
rename to app/templates/components/org_nav_breadcrumb.html
diff --git a/app/templates/new/components/service_nav.html b/app/templates/components/service_nav.html
similarity index 100%
rename from app/templates/new/components/service_nav.html
rename to app/templates/components/service_nav.html
diff --git a/app/templates/new/components/settings_nav.html b/app/templates/components/settings_nav.html
similarity index 100%
rename from app/templates/new/components/settings_nav.html
rename to app/templates/components/settings_nav.html
diff --git a/app/templates/new/components/usa_banner.html b/app/templates/components/usa_banner.html
similarity index 100%
rename from app/templates/new/components/usa_banner.html
rename to app/templates/components/usa_banner.html
diff --git a/app/templates/old/admin_template.html b/app/templates/old/admin_template.html
deleted file mode 100644
index 75e6505cf..000000000
--- a/app/templates/old/admin_template.html
+++ /dev/null
@@ -1,302 +0,0 @@
-{% extends "main_template.html" %}
-{% from "components/banner.html" import banner %}
-
-{% block headIcons %}
-
-
-
-
-{% endblock %}
-
-{% block head %}
-
- {% block extra_stylesheets %}
- {% endblock %}
- {% if g.hide_from_search_engines %}
-
- {% endif %}
-
- {% block meta_format_detection %}
-
- {% endblock %}
- {% block meta %}
-
-
- {% endblock %}
-
-{% endblock %}
-
-{% block pageTitle %}
- {% block per_page_title %}{% endblock %} – Notify.gov
-{% endblock %}
-
-{% block bodyStart %}
- {% block extra_javascripts_before_body %}
-
-
-
- {% endblock %}
-{% endblock %}
-
-{% block header %}
- {% if current_user.is_authenticated %}
- {% if current_user.platform_admin %}
- {% set navigation = [
- {
- "href": url_for("main.show_accounts_or_dashboard"),
- "text": "Current service",
- "active": header_navigation.is_selected('accounts-or-dashboard')
- },
- {
- "href": url_for('main.get_started'),
- "text": "Using Notify",
- "active": header_navigation.is_selected('using_notify')
- },
- {
- "href": url_for('main.features'),
- "text": "Features",
- "active": header_navigation.is_selected('features')
- },
- {
- "href": url_for('main.platform_admin_splash_page'),
- "text": "Platform admin",
- "active": header_navigation.is_selected('platform-admin')
- },
- {
- "href": url_for('main.support'),
- "text": "Contact us",
- "active": header_navigation.is_selected('support')
- }
- ] %}
- {% if current_service %}
- {% set secondaryNavigation = [
- {
- "href": url_for('main.service_settings', service_id=current_service.id),
- "text": "Settings",
- "active": secondary_navigation.is_selected('settings')
- },
- {
- "href": url_for('main.sign_out'),
- "text": "Sign out"
- }
- ] %}
- {% else %}
- {% set secondaryNavigation = [
- {
- "href": url_for('main.sign_out'),
- "text": "Sign out"
- }
- ] %}
- {% endif %}
- {% else %}
- {% set navigation = [
- {
- "href": url_for("main.show_accounts_or_dashboard"),
- "text": "Current service",
- "active": header_navigation.is_selected('accounts-or-dashboard')
- },
- {
- "href": url_for('main.get_started'),
- "text": "Using Notify",
- "active": header_navigation.is_selected('using_notify')
- },
- {
- "href": url_for('main.features'),
- "text": "Features",
- "active": header_navigation.is_selected('features')
- },
- {
- "href": url_for('main.support'),
- "text": "Contact us",
- "active": header_navigation.is_selected('support')
- },
- {
- "href": url_for('main.user_profile'),
- "text": "User profile",
- "active": header_navigation.is_selected('user-profile')
- }
- ] %}
- {% if current_service %}
- {% set secondaryNavigation = [
- {
- "href": url_for('main.service_settings', service_id=current_service.id),
- "text": "Settings",
- "active": secondary_navigation.is_selected('settings')
- },
- {
- "href": url_for('main.sign_out'),
- "text": "Sign out"
- }
- ] %}
- {% else %}
- {% set secondaryNavigation = [
- {
- "href": url_for('main.sign_out'),
- "text": "Sign out"
- }
- ] %}
- {% endif %}
- {% endif %}
- {% else %}
-
- {# {% set navigation = [
- {
- "href": url_for('main.get_started'),
- "text": "Using Notify",
- "active": header_navigation.is_selected('using_notify')
- },
- {
- "href": url_for('main.features'),
- "text": "Features",
- "active": header_navigation.is_selected('features')
- },
- {
- "href": url_for('main.support'),
- "text": "Contact us",
- "active": header_navigation.is_selected('support')
- },
- {
- "href": url_for('main.sign_in'),
- "text": "Sign in",
- "active": header_navigation.is_selected('sign-in')
- }
- ] %} #}
- {% endif %}
-
- {{ usaHeader({
- "homepageUrl": url_for('main.show_accounts_or_dashboard'),
- "productName": "Notify",
- "navigation": navigation,
- "navigationClasses": "govuk-header__navigation--end",
- "secondaryNavigation": secondaryNavigation,
- "assetsPath": asset_path + "images"
- }) }}
-{% endblock %}
-
-{% block footer %}
-
- {% if current_service and current_service.research_mode %}
- {% set meta_suffix = 'Built by the
Technology Transformation Servicesresearch mode' %}
- {% else %}
- {% set commit_hash = ", Latest version: " + config['COMMIT_HASH'] %}
- {% set long_link = '
Technology Transformation Services' %}
- {% set meta_suffix = "Built by the " + long_link + commit_hash %}
- {% endif %}
-
- {{ usaFooter({
- "classes": "js-footer",
- "navigation": [
- {
- "title": "About Notify",
- "columns": 1,
- "items": [
- {
- "href": url_for("main.features"),
- "text": "Features"
- },
- {
- "href": url_for("main.roadmap"),
- "text": "Roadmap"
- },
- {
- "href": url_for("main.security"),
- "text": "Security"
- },
- ]
- },
- {
- "title": "Using Notify",
- "columns": 1,
- "items": [
- {
- "href": url_for("main.get_started"),
- "text": "Get started"
- },
- {
- "href": url_for("main.pricing"),
- "text": "Pricing"
- },
- {
- "href": url_for("main.trial_mode_new"),
- "text": "Trial mode"
- },
- {
- "href": url_for("main.message_status"),
- "text": "Delivery status"
- },
- {
- "href": url_for("main.guidance_index"),
- "text": "Guidance"
- },
- {
- "href": url_for("main.documentation"),
- "text": "API documentation"
- }
- ]
- },
- {
- "title": "Support",
- "columns": 1,
- "items": [
- {
- "href": url_for('main.support'),
- "text": "Contact us"
- }
- ]
- },
- ],
- "meta": {
- "items": meta_items,
- "html": meta_suffix
- }
- }) }}
- {% if current_user.is_authenticated %}
- {% block sessionUserWarning %}
-
- {% endblock %}
- {% endif %}
-
-{% endblock %}
-
-
-{% block bodyEnd %}
- {% block extra_javascripts %}
-
- {% endblock %}
-
-
-
-
-
-
-{% endblock %}
diff --git a/app/templates/old/content_template.html b/app/templates/old/content_template.html
deleted file mode 100644
index 5f45027b3..000000000
--- a/app/templates/old/content_template.html
+++ /dev/null
@@ -1,28 +0,0 @@
-{% extends "base.html" %}
-{% from "components/sub-navigation.html" import sub_navigation %}
-{% from "components/page-header.html" import page_header %}
-
-{% block per_page_title %}
- {{ content_page_title }}
-{% endblock %}
-
-{% block maincolumn_content %}
-
-
-
- {% if navigation_links %}
-
- {{ sub_navigation(navigation_links) }}
-
-
- {% else %}
-
- {% endif %}
-
- {% block content_column_content %}
- {% endblock %}
-
-
-
-
-{% endblock %}
diff --git a/app/templates/old/main_nav.html b/app/templates/old/main_nav.html
deleted file mode 100644
index 4357dc654..000000000
--- a/app/templates/old/main_nav.html
+++ /dev/null
@@ -1,32 +0,0 @@
-{# This template is an old version #}
-{% if help %}
- {% include 'partials/tour.html' %}
-{% else %}
-
-{% endif %}
diff --git a/app/templates/old/main_template.html b/app/templates/old/main_template.html
deleted file mode 100644
index 20ab3eef9..000000000
--- a/app/templates/old/main_template.html
+++ /dev/null
@@ -1,70 +0,0 @@
-{% from "./components/components/skip-link/macro.njk" import usaSkipLink -%}
-{% from "./components/components/header/macro.njk" import usaHeader -%}
-{% from "./components/components/footer/macro.njk" import usaFooter -%}
-{# specify absolute url for the static assets folder e.g. http://wwww.domain.com/assets #}
-{%- set assetUrl = assetUrl | default(assetPath) -%}
-
-
-
-
-
{% block pageTitle %}Notify.gov{% endblock %}
-
-
-
- {% if config['NR_MONITOR_ON'] %}
- {% include "partials/newrelic.html" -%}
- {% endif %}
-
- {# Ensure that older IE versions always render with the correct rendering engine #}
-
-
- {% block headIcons %}
-
-
-
-
-
-
-
-
-
- {% endblock %}
-
- {% block head %}{% endblock %}
- {# The default og:image is added below head so that scrapers see any custom metatags first, and this is just a fallback #}
- {% block meta %}
-
-
- {% endblock %}
-
-
-
- {% block bodyStart %}{% endblock %}
-
- {% block skipLink %}
- {{ usaSkipLink({
- "href": '#main-content',
- "text": 'Skip to main content'
- }) }}
- {% endblock %}
-
- {% block header %}
- {{ usaHeader({}) }}
- {% endblock %}
-
- {% block main %}
-
- {% block beforeContent %}{% endblock %}
-
- {% block content %}{% endblock %}
-
-
- {% endblock %}
-
- {% block footer %}
- {{ usaFooter({}) }}
- {% endblock %}
-
- {% block bodyEnd %}{% endblock %}
-
-
diff --git a/app/templates/old/org_nav.html b/app/templates/old/org_nav.html
deleted file mode 100644
index 0511eb9ff..000000000
--- a/app/templates/old/org_nav.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{# This template is an old version #}
-
diff --git a/app/templates/old/org_template.html b/app/templates/old/org_template.html
deleted file mode 100644
index 5e04003fd..000000000
--- a/app/templates/old/org_template.html
+++ /dev/null
@@ -1,35 +0,0 @@
-{% extends "base.html" %}
-
-{% block per_page_title %}
- {% block org_page_title %}{% endblock %} – {{ current_org.name }}
-{% endblock %}
-
-{% block main %}
-
-
-
-
- {% include "org_nav.html" %}
-
-
- {% block beforeContent %}
- {% block backLink %}{% endblock %}
- {% endblock %}
-
- {% block content %}
- {% include 'flash_messages.html' %}
- {% block maincolumn_content %}{% endblock %}
- {% endblock %}
-
-
-
-
-{% endblock %}
diff --git a/app/templates/old/service_navigation.html b/app/templates/old/service_navigation.html
deleted file mode 100644
index 69e5b2ed3..000000000
--- a/app/templates/old/service_navigation.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{# This template is an old version #}
-{% macro navigation_service_name(service) %}
-
- {{ service.name }}
- {% if not service.active %}
- Suspended
- {% endif %}
-
-{% endmacro %}
-
-
- {% if current_service.organization_id %}
- {% if current_user.platform_admin or
- (current_user.belongs_to_organization(current_service.organization_id) and current_service.live) %}
-
{{ current_service.organization_name }}
- {% endif %}
- {% endif %}
- {{ navigation_service_name(current_service) }}
-
Switch service
-
diff --git a/app/templates/old/settings_nav.html b/app/templates/old/settings_nav.html
deleted file mode 100644
index 27c102054..000000000
--- a/app/templates/old/settings_nav.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{# This template is an old version #}
-{% if help %}
-{% include 'partials/tour.html' %}
-{% else %}
-
-{% endif %}
diff --git a/app/templates/old/settings_template.html b/app/templates/old/settings_template.html
deleted file mode 100644
index 08fa09f00..000000000
--- a/app/templates/old/settings_template.html
+++ /dev/null
@@ -1,35 +0,0 @@
-{# This template is an old version #}
-{% extends "admin_template.html" %}
-
-{% block per_page_title %}
- {% block service_page_title %}{% endblock %} – {{ current_service.name }}
-{% endblock %}
-
-{% block main %}
-
-
- {% if help %}
-
- {% else %}
-
- {% endif %}
- {% include "settings_nav.html" %}
-
- {% if help %}
-
- {% else %}
-
- {% endif %}
- {% block beforeContent %}
- {% block backLink %}{% endblock %}
- {% endblock %}
-
- {% block content %}
- {% include 'flash_messages.html' %}
- {% block maincolumn_content %}{% endblock %}
- {% endblock %}
-
-
-
-
-{% endblock %}
diff --git a/app/templates/old/withnav_template.html b/app/templates/old/withnav_template.html
deleted file mode 100644
index b1f83c989..000000000
--- a/app/templates/old/withnav_template.html
+++ /dev/null
@@ -1,36 +0,0 @@
-{# This template is an old version #}
-{% extends "admin_template.html" %}
-
-{% block per_page_title %}
- {% block service_page_title %}{% endblock %} – {{ current_service.name }}
-{% endblock %}
-
-{% block main %}
-
- {% include "service_navigation.html" %}
-
- {% if help %}
-
- {% else %}
-
- {% endif %}
- {% include "main_nav.html" %}
-
- {% if help %}
-
- {% else %}
-
- {% endif %}
- {% block beforeContent %}
- {% block backLink %}{% endblock %}
- {% endblock %}
-
- {% block content %}
- {% include 'flash_messages.html' %}
- {% block maincolumn_content %}{% endblock %}
- {% endblock %}
-
-
-
-
-{% endblock %}
diff --git a/app/templates/old/withoutnav_template.html b/app/templates/old/withoutnav_template.html
deleted file mode 100644
index b6b77088e..000000000
--- a/app/templates/old/withoutnav_template.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{% extends "base.html" %}
-
-{% set mainClasses = "margin-top-5 padding-bottom-5" %}
-
-{% block beforeContent %}
- {% if current_service and current_service.active and current_user.is_authenticated and current_user.belongs_to_service(current_service.id) %}
-
- {% endif %}
- {% block backLink %}{% endblock %}
-{% endblock %}
-
-{% block content %}
- {% include 'flash_messages.html' %}
- {% block maincolumn_content %}{% endblock %}
-{% endblock %}
diff --git a/app/templates/new/templates_glossary.md b/app/templates/templates_glossary.md
similarity index 100%
rename from app/templates/new/templates_glossary.md
rename to app/templates/templates_glossary.md
diff --git a/app/templates/views/manage-users.html b/app/templates/views/manage-users.html
index edf78c4e0..38c87c3bf 100644
--- a/app/templates/views/manage-users.html
+++ b/app/templates/views/manage-users.html
@@ -10,7 +10,7 @@
{% block serviceNavigation %}{% endblock %}
{% block sideNavigation %}
- {% include "/new/components/settings_nav.html" %}
+ {% include "components/settings_nav.html" %}
{% endblock %}
{% block maincolumn_content %}
diff --git a/app/templates/views/platform-admin/_base_template.html b/app/templates/views/platform-admin/_base_template.html
index d4c35eca6..ac75e14f7 100644
--- a/app/templates/views/platform-admin/_base_template.html
+++ b/app/templates/views/platform-admin/_base_template.html
@@ -45,7 +45,7 @@
{% block backLink %}{% endblock %}
{% block content %}
- {% include 'new/components/flash_messages.html' %}
+ {% include 'components/flash_messages.html' %}
{% block platform_admin_content %}{% endblock %}
{% endblock %}
diff --git a/app/templates/views/service-settings.html b/app/templates/views/service-settings.html
index 560998685..b90545030 100644
--- a/app/templates/views/service-settings.html
+++ b/app/templates/views/service-settings.html
@@ -9,7 +9,7 @@
{% block serviceNavigation %}{% endblock %}
{% block sideNavigation %}
- {% include "/new/components/settings_nav.html" %}
+ {% include "components/settings_nav.html" %}
{% endblock %}
{% block maincolumn_content %}
diff --git a/app/templates/views/user-profile.html b/app/templates/views/user-profile.html
index a03eeab50..6f243d7a8 100644
--- a/app/templates/views/user-profile.html
+++ b/app/templates/views/user-profile.html
@@ -9,7 +9,7 @@
{% block serviceNavigation %}{% endblock %}
{% block sideNavigation %}
- {% include "/new/components/settings_nav.html" %}
+ {% include "components/settings_nav.html" %}
{% endblock %}
{% block maincolumn_content %}
diff --git a/app/templates/withnav_template.html b/app/templates/withnav_template.html
index 93b7d973e..eb6a42244 100644
--- a/app/templates/withnav_template.html
+++ b/app/templates/withnav_template.html
@@ -13,35 +13,20 @@
{% block serviceNavigation %}
{% if current_org.name %}
{% else %}
- {% include "new/components/service_nav.html" %}
+ {% include "components/service_nav.html" %}
{% endif %}
{% endblock %}
- {#
- The withnav_template can serve as a replacement for both settings_template and org_template.html.
-
- The file service_navigation.html is included only in withnav_template. It's not used in settings_template. That is one out of the two differences between settings template and withnav template. As a result, when other templates extend settings_template, they include the serviceNavigation block but keep it empty. The settings_template.html is specifically used for these pages in the app: manage-users.html, service-settings.html, and user-profile.html.
-
- In addition, serviceNavigation should be empty on templates that previously extended org_template. For templates that previously extended org_template.html, there's an addition of the orgNavBreadcrumb block.
- {% block orgNavBreadcrumb %}
- {% include "/new/components/org_nav_breadcrumb.html" %}
- {% endblock %}
- #}
{% if current_org.name %}
- {% block orgNavBreadcrumb %}{% include "/new/components/org_nav_breadcrumb.html" %}{% endblock %}
+ {% block orgNavBreadcrumb %}{% include "components/org_nav_breadcrumb.html" %}{% endblock %}
{% endif %}
{% block sideNavigation %}
{% if current_org.name %}
- {% include "/new/components/org_nav.html" %}
+ {% include "components/org_nav.html" %}
{% else %}
- {% include "/new/components/main_nav.html" %}
+ {% include "components/main_nav.html" %}
{% endif %}
- {#
- Include settings_nav.html for child templates that previously extended settings_template.
-
- Include "org_nav.html" for child templates that previously extended org_template html
- #}
{% endblock %}
@@ -50,7 +35,7 @@
{% endblock %}
{% block content %}
- {% include 'new/components/flash_messages.html' %}
+ {% include 'components/flash_messages.html' %}
{% block maincolumn_content %}{% endblock %}
{% endblock %}