Commit fa1c4b16 authored by felix.herrmann's avatar felix.herrmann
Browse files

fix(nav): add active classes also for dashboard feed/notifications urls

parent 0c2418e5
......@@ -28,9 +28,9 @@ def nav_active(req_path, url_str):
try:
if req_path.startswith(url_str):
return "active"
return None
return ""
except Exception:
return None
return ""
@register.filter
......
......@@ -17,7 +17,7 @@
{% endif %}
<ul class="nav flex-column">
<li class="nav-item {% nav_active request.path "/dashboard" %}">
<li class="nav-item {% nav_active request.path "/dashboard" %} {% nav_active request.path "/users/notifications" %} {% nav_active request.path "/users/feed/users" %}">
<a class="nav-link i i-home" href="{% url 'ddusers.dashboard_page' %}">
{% trans "Dashboard" %} <span class="sr-only">(current)</span>
</a>
......@@ -32,7 +32,7 @@
{% trans "My Data" %}
</a>
</li>
<li class="nav-item {% nav_active request.path "/users/follow/datasetfeed" %}">
<li class="nav-item {% nav_active request.path "/users/feed/datasets" %}">
<a class="nav-link i i-ds-followed" href="{% url 'ddusers:dataset_feed' %}">
{% trans "Followed Datasets" %}
</a>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment