Turn off 'Get started' link when signed out

This commit is contained in:
Tom Byers
2019-12-30 15:15:02 +00:00
parent aa2c095704
commit 6b27a9e7a3
2 changed files with 47 additions and 22 deletions

View File

@@ -147,6 +147,50 @@
{% set meta_suffix = 'Built by the <a href="https://www.gov.uk/government/organisations/government-digital-service" class="govuk-footer__link">Government Digital Service</a>' %}
{% endif %}
{% if signed_out %}
{% set using_notify_links = {
"title": "Using Notify",
"columns": 1,
"items": [
{
"href": url_for("main.get_started"),
"text": "Get started"
},
{
"href": url_for("main.trial_mode_new"),
"text": "Trial mode"
},
{
"href": url_for("main.message_status"),
"text": "Message status"
},
{
"href": url_for("main.documentation"),
"text": "API documentation"
}
]
} %}
{% else %}
{% set using_notify_links = {
"title": "Using Notify",
"columns": 1,
"items": [
{
"href": url_for("main.trial_mode_new"),
"text": "Trial mode"
},
{
"href": url_for("main.message_status"),
"text": "Message status"
},
{
"href": url_for("main.documentation"),
"text": "API documentation"
}
]
} %}
{% endif %}
{{ govukFooter({
"classes": "js-footer",
"navigation": [
@@ -212,28 +256,7 @@
}
]
},
{
"title": "Using Notify",
"columns": 1,
"items": [
{
"href": url_for("main.get_started"),
"text": "Get started"
},
{
"href": url_for("main.trial_mode_new"),
"text": "Trial mode"
},
{
"href": url_for("main.message_status"),
"text": "Message status"
},
{
"href": url_for("main.documentation"),
"text": "API documentation"
}
]
}
using_notify_links
],
"meta": {
"items": meta_items,