mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05:00
Fix issues raised in pull request
Includes: - replacing of conditional with statement that returns the same values - making lins to GDS page actually go there
This commit is contained in:
@@ -330,9 +330,7 @@ class HeaderNavigation(Navigation):
|
||||
|
||||
# header HTML now comes from GOVUK Frontend so requires a boolean, not an attribute
|
||||
def is_selected(self, navigation_item):
|
||||
if request.endpoint in self.mapping[navigation_item]:
|
||||
return True
|
||||
return False
|
||||
return request.endpoint in self.mapping[navigation_item]
|
||||
|
||||
|
||||
class MainNavigation(Navigation):
|
||||
|
||||
@@ -139,9 +139,9 @@
|
||||
] %}
|
||||
|
||||
{% if current_service and current_service.research_mode %}
|
||||
{% set meta_suffix = 'Built by the <a href="#" class="govuk-footer__link">Government Digital Service</a><span id="research-mode" class="research-mode">research mode</span>' %}
|
||||
{% 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><span id="research-mode" class="research-mode">research mode</span>' %}
|
||||
{% else %}
|
||||
{% set meta_suffix = 'Built by the <a href="#" class="govuk-footer__link">Government Digital Service</a>' %}
|
||||
{% 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 %}
|
||||
|
||||
{{ notify_footer({
|
||||
|
||||
Reference in New Issue
Block a user