Fixes highlighted explore in nav
This commit is contained in:
Родитель
c1c8f6b121
Коммит
e34e39b21f
|
@ -1,10 +1,15 @@
|
|||
[
|
||||
{
|
||||
"id": "gallery",
|
||||
"id": "index",
|
||||
"title": "Explore",
|
||||
"icon": "icon-random",
|
||||
"defaultUrl": "explore",
|
||||
"pages": []
|
||||
"pages": [
|
||||
{
|
||||
"id": "index",
|
||||
"url": "explore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "tools",
|
||||
|
|
|
@ -20,54 +20,4 @@
|
|||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<nav id="navigation-secondary" class="navigation-container">
|
||||
{% for section in navigation %}
|
||||
{% if not section.flag or flags[section.flag] %}
|
||||
{% if not section.exclude or (section.exclude and not flags[section.exclude]) %}
|
||||
<ul data-section="{{section.id}}" class="navigation-list navigation-wrapper{% if section.id == currentSection %} active{% endif %}">
|
||||
{% for page in section.pages %}
|
||||
{% if not page.flag or flags[page.flag] %}
|
||||
{% if not page.adminOnly or isAdmin %}
|
||||
{% if not page.isAtleastMentor or isAdmin or isSuperMentor or isMentor %}
|
||||
<li>
|
||||
|
||||
<a
|
||||
data-page="{{page.id}}" {% if page.id == currentPage %}
|
||||
class="active"{% endif %}
|
||||
href="{% if not page.external %}/{{localeInfo.lang}}/{% endif %}{{ page.url | instantiate }}"{% if page.external %} target="_blank"{% endif %}
|
||||
>
|
||||
|
||||
{{gettext(page.title)}}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</nav>
|
||||
|
||||
<nav id="expanded-navigation">
|
||||
<div class="navigation-wrapper">
|
||||
<ul class="navigation-list navigation-wrapper">
|
||||
{% for section in navigation %}
|
||||
{% if not section.flag or flags[section.flag] %}
|
||||
<li class="nav-icon">
|
||||
<a href="{% if section.instantiate %}{{section.defaultUrl | instantiate}}{% else %}/{{localeInfo.lang}}/{{section.defaultUrl}}{% endif %}"
|
||||
{% if section.url == currentSection %}class="active"{% endif %}
|
||||
data-section="{{section.id}}">
|
||||
<span class="fa {{section.icon}}"></span>
|
||||
{{gettext(section.title)}}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
</section>
|
||||
|
|
Загрузка…
Ссылка в новой задаче