Fixes highlighted explore in nav

This commit is contained in:
Aki Rose Braun 2014-12-22 10:50:53 -08:00
Родитель c1c8f6b121
Коммит e34e39b21f
2 изменённых файлов: 7 добавлений и 52 удалений

Просмотреть файл

@ -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>