-
Notifications
You must be signed in to change notification settings - Fork 225
/
_banner.njk
30 lines (28 loc) · 1.04 KB
/
_banner.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% from "phase-banner/macro.njk" import govukPhaseBanner %}
{% if PULL_REQUEST %}
{% set phaseBannerText %}
This is a preview of
{% if REVIEW_ID %}
a <a class="govuk-link" href="https://github.com/alphagov/govuk-design-system/pull/{{ REVIEW_ID }}">proposed change</a> to the
{% else %}
the <a class="govuk-link" href="https://github.com/alphagov/govuk-design-system/tree/{{ BRANCH }}">{{ BRANCH }}</a> branch for the
{% endif %}
<a class="govuk-link" href="https://govuk-design-system-production.cloudapps.digital">Design System</a>.
{% endset %}
{{ govukPhaseBanner({
"tag": {
"text": "preview",
"classes": "app-tag--review"
},
"classes": "govuk-!-pl-r3 govuk-!-pr-r3",
"html": phaseBannerText
}) }}
{% else %}
{{ govukPhaseBanner({
"tag": {
"text": "beta"
},
"classes": "govuk-!-pl-r3 govuk-!-pr-r3",
"html": "This is a new service – your <a class=\"govuk-link\" href=\"/design-system/get-in-touch\">feedback</a> will help us to improve it."
}) }}
{% endif %}