Skip to content
Snippets Groups Projects
Unverified Commit 034985fe authored by Todd Dembrey's avatar Todd Dembrey Committed by GitHub
Browse files

Merge pull request #153 from OpenTechFund/feature/188-make-nav-aware-of-location

Add the active state to the nav if on the current page
parents 6891866e 3440c05f
No related branches found
No related tags found
No related merge requests found
<li class="nav__item" role="presentation">
{% url url as target_url%}
<a class="nav__link {% if target_url == request.path %}nav__link--active{% endif %}" href="{{ target_url }}" role="menuitem">
{{ name }}
</a>
</li>
<nav role="navigation" aria-label="Primary">
<ul class="nav nav--primary" role="menubar">
<li class="nav__item" role="presentation">
<a class="nav__link" href="{% url "dashboard:dashboard" %}" role="menuitem">
Dashboard
</a>
</li>
<li class="nav__item" role="presentation">
<a class="nav__link" href="{% url "funds:submissions" %}" role="menuitem">
Submissions
</a>
</li>
{% include "navigation/primarynav-apply-item.html" with name="Dashboard" url="dashboard:dashboard" %}
{% include "navigation/primarynav-apply-item.html" with name="Submissions" url="funds:submissions" %}
</ul>
</nav>
<a href="#" class="link link--button-transparent link--mobile-standout">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment