Sha256: 55e0a11e7782ac6d79f8b948337009bbd9710924e894e19e1a19f78f892270e4

Contents?: true

Size: 1.24 KB

Versions: 8

Compression:

Stored size: 1.24 KB

Contents

{% from "../button/macro.njk" import govukButton %}

{%- set defaultHtml %}
  <span class="govuk-visually-hidden">Emergency</span> Exit this page
{% endset -%}

<div
  {%- if params.id %} id="{{ params.id }}"{% endif %} class="govuk-exit-this-page {%- if params.classes %} {{ params.classes }}{% endif %}" data-module="govuk-exit-this-page" {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}
  {%- if params.activatedText %} data-i18n.activated="{{ params.activatedText | escape }}"{% endif %}
  {%- if params.timedOutText %} data-i18n.timed-out="{{ params.timedOutText | escape }}"{% endif %}
  {%- if params.pressTwoMoreTimesText %} data-i18n.press-two-more-times="{{ params.pressTwoMoreTimesText | escape }}"{% endif %}
  {%- if params.pressOneMoreTimeText %} data-i18n.press-one-more-time="{{ params.pressOneMoreTimeText | escape }}"{% endif %}
>
  {{ govukButton({
    html: params.html if (params.html or params.text) else defaultHtml,
    text: params.text,
    classes: "govuk-button--warning govuk-exit-this-page__button govuk-js-exit-this-page-button",
    href: params.redirectUrl | default("https://www.bbc.co.uk/weather", true),
    attributes: {
      rel: "nofollow noreferrer"
    }
  }) | trim | indent(2) }}
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
govuk_publishing_components-42.1.0 node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template.njk
govuk_publishing_components-42.0.0 node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template.njk
govuk_publishing_components-41.1.2 node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template.njk
govuk_publishing_components-41.1.1 node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template.njk
govuk_publishing_components-41.1.0 node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template.njk
govuk_publishing_components-41.0.0 node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template.njk
govuk_publishing_components-40.1.0 node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template.njk
govuk_publishing_components-40.0.0 node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template.njk