-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70a62a4
commit 67302af
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
{% macro mobileNavigation(params) %} | ||
{% if params.items %} | ||
<ul class="app-navigation__list"> | ||
{% for item in params.items %} | ||
<ul class="app-navigation__list"> | ||
{% for theme, items in params.items | groupby("theme") %} | ||
{% if theme != 'undefined' %} | ||
<li class="app-navigation__subnav-item"> | ||
<h3 class="app-mobile-navigation__theme" >{{ theme }}</h3> | ||
</li> | ||
{% endif %} | ||
{% for item in items %} | ||
<li class="app-navigation__subnav-item"> | ||
<a class="govuk-link govuk-link--no-visited-state govuk-link--no-underline" href="{{ item.href }}"> | ||
{{ item.text }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters