Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Use mobile template for mobile requests

Scott Peshak8f7e395350e3
diff --git a/wger/core/templates/base.html b/wger/core/templates/base.html
index ff46ad1d2..a8812d8bc 100644
--- a/wger/core/templates/base.html
+++ b/wger/core/templates/base.html
@@ -1,4 +1,6 @@
-{% extends "template.html" %}{% load i18n wger_extras django_bootstrap_breadcrumbs %}
+{% extends request.user_agent.is_mobile|yesno:"mobile/template.html,template.html" %}
+{% load i18n wger_extras django_bootstrap_breadcrumbs %}
+
{% block template %}
{% if show_shariff %}
{% include 'misc/fragments/shariff_modal.html' %}