Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #222 from eugenosm/201-Fix-indentation-in-menu
Browse files Browse the repository at this point in the history
Fix menu indent and selection #201
  • Loading branch information
vpetersson authored May 30, 2019
2 parents 351b92a + 6f7771b commit 06a5294
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions backend/device_registry/templates/admin_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,24 @@
<span class="align-middle">WoTT</span>
</a>

{% with url_name=request.resolver_match.url_name %}
<ul class="sidebar-nav">
<li class="sidebar-item active">
<a href="{% url 'root' %}" class="sidebar-link">
<span class="align-middle">Dashboard</span>
</a>
<ul id="dashboards" class="sidebar-dropdown list-unstyled collapse show">
<li class="sidebar-item"><a class="sidebar-link" href="{% url 'claim-device' %}">Claim Device</a></li>
<li class="sidebar-item"><a class="sidebar-link" href="{% url 'actions' %}">Recommended Actions</a></li>
<li class="sidebar-item"><a class="sidebar-link" href="{% url 'credentials' %}">Credentials</a></li>
</ul>
</li>
<li class="sidebar-item {% if url_name == 'root' %}active{% endif %}">
<a class="sidebar-link" href="{% url 'root' %}">Dashboard </a>
</li>
<li class="sidebar-item {% if url_name == 'claim-device' %}active{% endif %}">
<a class="sidebar-link" href="{% url 'claim-device' %}">Claim Device</a>
</li>
<li class="sidebar-item {% if url_name == 'actions' %}active{% endif %}">
<a class="sidebar-link" href="{% url 'actions' %}">Recommended Actions</a>
</li>
<li class="sidebar-item {% if url_name == 'credentials' %}active{% endif %}">
<a class="sidebar-link" href="{% url 'credentials' %}">Credentials</a>
</li>

</ul>
{% endwith %}

</div>
</nav>

Expand Down

0 comments on commit 06a5294

Please sign in to comment.