Skip to content

Commit

Permalink
fix #1555
Browse files Browse the repository at this point in the history
  • Loading branch information
FluidSense committed Mar 8, 2020
1 parent 4c752f4 commit f23bdf7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion apps/dashboard/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

from apps.dashboard import views

urlpatterns = [url(r"^$", views.index, name="dashboard_index")]
app_name="dashboard"

urlpatterns = [url(r"^$", views.index, name="index")]
5 changes: 4 additions & 1 deletion onlineweb4/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@

if "apps.dashboard" in settings.INSTALLED_APPS:
urlpatterns += [
url(r"^dashboard/", include("apps.dashboard.urls")),
url(r"^dashboard/",
include("apps.dashboard.urls", namespace="dashboard"
),
),
url(
r"^dashboard/chunks/",
include(
Expand Down
5 changes: 1 addition & 4 deletions templates/dashboard_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ <h4 class="center-text"><small>Velkommen</small><br />{{ request.user.first_name
</a>
<ul class="treeview-menu">
<li><a href="{% url 'user_list' %}"><i class="fa fa-angle-double-right orange"></i> Brukerprofiler</a></li>
{% if request.user.is_superuser %}
<li><a href="{% url 'dashboard:index' %}"><i class="fa fa-angle-double-right orange"></i> Ekstern tilgang</a></li>
{% endif %}
<li><a href="#"><i class="fa fa-angle-double-right orange"></i> Posisjoner</a></li>
<li><a href="#"><i class="fa fa-angle-double-right orange"></i> Spesialposisjoner</a></li>
</ul>
Expand Down Expand Up @@ -320,7 +317,7 @@ <h2>
{% endblock %}
</h2>
<ol class="breadcrumb">
<li><a href="{% url 'dashboard_index' %}">Dashboard</a></li>
<li><a href="{% url 'dashboard:index' %}">Dashboard</a></li>
{% block breadcrumbs %}

{% endblock %}
Expand Down

0 comments on commit f23bdf7

Please sign in to comment.