Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Disable the mobile version for now

Roland Geiderbc12ea94cb96
diff --git a/wger/manager/templates/mobile/template.html b/wger/manager/templates/mobile/template.html
index 4d9898ddd..f6db7762e 100644
--- a/wger/manager/templates/mobile/template.html
+++ b/wger/manager/templates/mobile/template.html
@@ -63,10 +63,10 @@
{% if user.is_authenticated %}
<li {% if active_tab == 'workout' %}class="active"{% endif %}>
- <a href="{% url wgrt.manager.views.overview %}">{% trans "Workouts" %}</a>
+ <a href="{% url wger.manager.views.overview %}">{% trans "Workouts" %}</a>
</li>
<li class="dropdown {% if active_tab == 'nutrition' %}active{% endif %}">
- <a href="{% url nutrition.views.overview %}">{% trans "Nutrition" %}</a>
+ <a href="{% url wger.nutrition.views.overview %}">{% trans "Nutrition" %}</a>
</li>
{% endif %}
diff --git a/wger/settings_global.py b/wger/settings_global.py
index df600cf78..4e4bbba33 100644
--- a/wger/settings_global.py
+++ b/wger/settings_global.py
@@ -56,7 +56,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
'wger.manager.context_processor.processor',
'django.contrib.auth.context_processors.auth',
'django_browserid.context_processors.browserid_form',
- 'django_mobile.context_processors.flavour',
+ #'django_mobile.context_processors.flavour',
)
@@ -140,8 +140,8 @@ MIDDLEWARE_CLASSES = (
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.locale.LocaleMiddleware',
- 'django_mobile.middleware.MobileDetectionMiddleware',
- 'django_mobile.middleware.SetFlavourMiddleware',
+ #'django_mobile.middleware.MobileDetectionMiddleware',
+ #'django_mobile.middleware.SetFlavourMiddleware',
)
INTERNAL_IPS = ('127.0.0.1',)
@@ -185,7 +185,7 @@ INSTALLED_APPS = (
'django.contrib.sitemaps',
# Django mobile
- 'django_mobile',
+ #'django_mobile',
)