mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-28 19:31:00 -04:00
convert include to macros
This commit is contained in:
@@ -293,6 +293,7 @@ def benchmark_performance():
|
||||
|
||||
|
||||
@main.route("/using-notify/guidance")
|
||||
@main.route("/guides/using-notify/guidance")
|
||||
@user_is_logged_in
|
||||
def guidance_index():
|
||||
return render_template(
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
{% macro breadcrumb(title, parent_menu_title, url) %}
|
||||
<nav class="navigation-service usa-breadcrumb padding-top-0">
|
||||
<ol class="usa-breadcrumb__list">
|
||||
<li class="usa-breadcrumb__list-item">
|
||||
<span class="usa-breadcrumb__label"><a href="{{ url_for('.best_practices') }}"
|
||||
class="usa-link navigation-organization-link">{{ parent_menu_title }}</a></span>
|
||||
<span class="usa-breadcrumb__label">
|
||||
<a href="{{ url_for(url) }}" class="usa-link navigation-organization-link">
|
||||
{{ parent_menu_title }}
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
{% if title %}
|
||||
<li class="usa-breadcrumb__list-item">
|
||||
@@ -11,3 +15,4 @@
|
||||
{% endif %}
|
||||
</ol>
|
||||
</nav>
|
||||
{% endmacro %}
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content_column_content %}
|
||||
<!-- {% with title=page_title %}{% include "components/nav_breadcrumb.html" %}{% endwith %} -->
|
||||
<section class="usa-prose">
|
||||
<h1>{{page_title}}</h1>
|
||||
<p>Notify.gov is a text messaging service built by and for the government. We help agencies communicate more
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% import "components/nav_breadcrumb.html" as breadcrumbs %}
|
||||
|
||||
{% set page_title = "Security" %}
|
||||
|
||||
@@ -7,7 +8,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content_column_content %}
|
||||
<!-- {% with title=page_title %}{% include "components/nav_breadcrumb.html" %}{% endwith %} -->
|
||||
{{ breadcrumbs.breadcrumb(page_title, "About", "main.about_notify") }}
|
||||
|
||||
<section class="usa-prose">
|
||||
<h1>{{page_title}}</h1>
|
||||
<p class="font-sans-lg text-base">Notify.gov is built for the needs of government agencies with fundamental system
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
{% import "components/nav_breadcrumb.html" as breadcrumbs %}
|
||||
|
||||
{% set page_title = "Why text messaging" %}
|
||||
|
||||
{% block per_page_title %}
|
||||
@@ -6,8 +8,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content_column_content %}
|
||||
<!-- {% with title=page_title, parent_title="About", url="main.why_text_messaging" %}{% include
|
||||
"components/nav_breadcrumb.html" %}{% endwith %} -->
|
||||
{{ breadcrumbs.breadcrumb(page_title, "About", "main.about_notify") }}
|
||||
|
||||
<section class="usa-prose">
|
||||
<h1>{{page_title}}</h1>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% import "components/nav_breadcrumb.html" as breadcrumbs %}
|
||||
|
||||
{% set page_title = "Measuring performance with benchmarking" %}
|
||||
|
||||
@@ -7,9 +8,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content_column_content %}
|
||||
{% with title=page_title, parent_menu_title="Guides" %}
|
||||
{% include "components/nav_breadcrumb.html" %}
|
||||
{% endwith %}
|
||||
{{ breadcrumbs.breadcrumb(page_title, "Guides", "main.best_practices") }}
|
||||
|
||||
<section class="usa-prose">
|
||||
<h1>{{page_title}}</h1>
|
||||
<p class="font-sans-lg text-base">Learn how effective your texting program can be.</p>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% import "components/nav_breadcrumb.html" as breadcrumbs %}
|
||||
|
||||
{% set page_title = "Establish clear goals" %}
|
||||
|
||||
@@ -7,8 +8,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content_column_content %}
|
||||
{% with title=page_title, parent_menu_title="Guides" %}{% include "components/nav_breadcrumb.html" %}{% endwith
|
||||
%}
|
||||
{{ breadcrumbs.breadcrumb(page_title, "Guides", "main.best_practices") }}
|
||||
|
||||
<section class="usa-prose">
|
||||
<h1>{{page_title}}</h1>
|
||||
<p class="font-sans-lg text-base">Start with a singular purpose. Make explicit what you want to achieve.</p>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
{% import "components/nav_breadcrumb.html" as breadcrumbs %}
|
||||
|
||||
{% from "components/guides/circle_number.html" import circle_number %}
|
||||
|
||||
{% set page_title = "Establish trust" %}
|
||||
@@ -8,8 +10,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content_column_content %}
|
||||
{% with title=page_title, parent_menu_title="Guides" %}{% include "components/nav_breadcrumb.html" %}{% endwith
|
||||
%}
|
||||
{{ breadcrumbs.breadcrumb(page_title, "Guides", "main.best_practices") }}
|
||||
|
||||
<section class="usa-prose">
|
||||
<h1>{{page_title}}</h1>
|
||||
<p class="font-sans-lg text-base">Help your audience anticipate and welcome your texts.</p>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% import "components/nav_breadcrumb.html" as breadcrumbs %}
|
||||
|
||||
{% set page_title = "Text in multiple languages" %}
|
||||
|
||||
@@ -7,8 +8,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content_column_content %}
|
||||
{% with title=page_title, parent_menu_title="Guides" %}{% include "components/nav_breadcrumb.html" %}{% endwith
|
||||
%}
|
||||
{{ breadcrumbs.breadcrumb(page_title, "Guides", "main.best_practices") }}
|
||||
|
||||
<section class="usa-prose">
|
||||
<h1>{{page_title}}</h1>
|
||||
<p class="font-sans-lg text-base"> What to know as you plan translated texts.</p>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% import "components/nav_breadcrumb.html" as breadcrumbs %}
|
||||
|
||||
{% set page_title = "Rules and regulations" %}
|
||||
|
||||
@@ -7,8 +8,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content_column_content %}
|
||||
{% with title=page_title, parent_menu_title="Guides" %}{% include "components/nav_breadcrumb.html" %}{% endwith
|
||||
%}
|
||||
{{ breadcrumbs.breadcrumb(page_title, "Guides", "main.best_practices") }}
|
||||
|
||||
<section class="usa-prose">
|
||||
<h1>{{page_title}}</h1>
|
||||
<p class="font-sans-lg text-base">Understand what is required when texting the public.</p>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% import "components/nav_breadcrumb.html" as breadcrumbs %}
|
||||
{% from "components/guides/circle_number.html" import circle_number %}
|
||||
|
||||
{% set page_title = "Write texts that provoke action" %}
|
||||
@@ -8,8 +9,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content_column_content %}
|
||||
{% with title=page_title, parent_menu_title="Guides" %}{% include "components/nav_breadcrumb.html" %}{% endwith
|
||||
%}
|
||||
{{ breadcrumbs.breadcrumb(page_title, "Guides", "main.best_practices") }}
|
||||
|
||||
<section class="usa-prose">
|
||||
<h1>{{page_title}}</h1>
|
||||
<p class="font-sans-lg text-base"> Help your audience know what to do with the information you send.</p>
|
||||
|
||||
Reference in New Issue
Block a user