Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Remove "user tab"

Roland Geiderf994278cf641
diff --git a/wger/core/templates/navigation.html b/wger/core/templates/navigation.html
index 03442ce38..b9f411924 100644
--- a/wger/core/templates/navigation.html
+++ b/wger/core/templates/navigation.html
@@ -7,18 +7,6 @@
</button>
<div class="collapse navbar-collapse" id="main-navbar-navigation">
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
- {# #}
- {# User tab #}
- {# #}
- <li class="nav-item {% if active_tab == 'user' %}active{% endif %}">
- <a class="nav-link" href="{% url 'core:index' %}">
- {% if not user.is_authenticated %}
- {% trans "Features" %}
- {% else %}
- {% trans "Dashboard" %}
- {% endif %}
- </a>
- </li>
{# #}
diff --git a/wger/core/views/user.py b/wger/core/views/user.py
index 610feb668..fde7b71e3 100644
--- a/wger/core/views/user.py
+++ b/wger/core/views/user.py
@@ -115,15 +115,13 @@ def login(request):
Small wrapper around the django login view
'''
- context = {'active_tab': USER_TAB}
next_url = "?next=" + request.GET.get('next') if request.GET.get('next') else ''
form = UserLoginForm
form.helper.form_action = reverse('core:user:login') + next_url
return LoginView.as_view(template_name='user/login.html',
- authentication_form=form,
- extra_context=context)
+ authentication_form=form)
@login_required()
diff --git a/wger/utils/context_processor.py b/wger/utils/context_processor.py
index 79e5ab56b..87e329b73 100644
--- a/wger/utils/context_processor.py
+++ b/wger/utils/context_processor.py
@@ -92,9 +92,6 @@ def processor(request):
elif '/workout/' in request.get_full_path():
context['active_tab'] = constants.WORKOUT_TAB
- else:
- context['active_tab'] = constants.USER_TAB
-
return context