Link to dashboard from menu

This commit is contained in:
Mouse Reeve 2021-09-11 07:17:14 -07:00
parent bc179ab90f
commit fc69729f93
3 changed files with 3 additions and 3 deletions

View file

@ -121,7 +121,7 @@
{% endif %}
{% if perms.bookwyrm.moderate_user %}
<li>
<a href="{% url 'settings-users' %}" class="navbar-item">
<a href="{% url 'settings-dashboard' %}" class="navbar-item">
{% trans 'Admin' %}
</a>
</li>

View file

@ -19,7 +19,7 @@
<div class="block columns">
<nav class="menu column is-one-quarter">
<h2 class="menu-label">
{% url 'dashboard' as url %}
{% url 'settings-dashboard' as url %}
<a
href="{{ url }}"
{% if url in request.path %} class="is-active" aria-selected="true"{% endif %}

View file

@ -65,7 +65,7 @@ urlpatterns = [
r"^password-reset/(?P<code>[A-Za-z0-9]+)/?$", views.PasswordReset.as_view()
),
# admin
re_path(r"^settings/dashboard/?$", views.Dashboard.as_view(), name="dashboard"),
re_path(r"^settings/dashboard/?$", views.Dashboard.as_view(), name="settings-dashboard"),
re_path(r"^settings/site-settings/?$", views.Site.as_view(), name="settings-site"),
re_path(
r"^settings/announcements/?$",