-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed primary page menu stylings so it's consistent with fellowship's…
… nav stylings
- Loading branch information
Showing
2 changed files
with
18 additions
and
20 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
23 changes: 16 additions & 7 deletions
23
network-api/networkapi/wagtailpages/templates/wagtailpages/tags/primary_page_menu.html
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,12 +1,21 @@ | ||
{% load wagtailcore_tags %} | ||
|
||
{% if singleton_page == False %} | ||
<div class="hidden-sm-down d-flex flex-row multipage-nav primary-menu" id="multipage-nav"> | ||
{% for entry in menu_pages %} | ||
<div class="mx-3"> | ||
<a class="multipage-link {% if current.title == entry.page.title %}multipage-link-active{% endif %}" href="{% pageurl entry.page %}">{% if entry.depth == 2 %}→ {% endif %}{{ entry.menu_title }} | ||
</a> | ||
</div> | ||
{% endfor %} | ||
<div class="container hidden-sm-down my-4"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<div class="d-flex flex-row primary-menu" id="multipage-nav"> | ||
{% for entry in menu_pages %} | ||
<div> | ||
<a class="multipage-link {% if current.title == entry.page.title %}multipage-link-active{% endif %}" href="{% pageurl entry.page %}">{% if entry.depth == 2 %}→ {% endif %}{{ entry.menu_title }} | ||
</a> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
<div class="col-12"> | ||
<hr class="hr-gradient mb-0"> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} |