Revert "Convert all links to govuk frontend"

This commit is contained in:
Tom Byers
2020-02-24 11:56:38 +00:00
committed by GitHub
parent ae1b2d4c63
commit 5b306dde4d
163 changed files with 548 additions and 521 deletions

View File

@@ -7,7 +7,7 @@ class Navigation:
mapping = {}
exclude = {}
selected_class = "selected"
selected_attribute = "class=selected"
def __init__(self):
self.mapping = {
@@ -32,7 +32,7 @@ class Navigation:
def is_selected(self, navigation_item):
if request.endpoint in self.mapping[navigation_item]:
return " " + self.selected_class
return self.selected_attribute
return ''
@staticmethod
@@ -42,6 +42,8 @@ class Navigation:
class HeaderNavigation(Navigation):
selected_attribute = "class=active"
mapping = {
'support': {
'bat_phone',