Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Show the title in each page, as with full version

Roland Geideraa402d822fd2
diff --git a/wger/manager/templates/mobile/base.html b/wger/manager/templates/mobile/base.html
new file mode 100644
index 000000000..0aefb79a0
--- /dev/null
+++ b/wger/manager/templates/mobile/base.html
@@ -0,0 +1,17 @@
+{% extends "template.html" %}
+{% load i18n %}
+{% block template %}
+ {% if not user.is_authenticated or user.get_profile.is_temporary %}
+ <div data-role="popup" id="popupGuestUser" class="ui-content">
+ {% trans "You are using a guest account, data entered will be deleted after a week."%}
+ {% if not has_demo_data %}
+ <a href="{% url 'demo-entries' %}" rel="nofollow" data-role="button" data-mini="true">{% trans "Create some demo entries" %} »</a>
+ {% endif %}
+ </div>
+ {% endif %}
+ <div data-role="content">
+ <h2>{% block title %}{% endblock %}</h2>
+ {% block content %}{% endblock %}
+ {% block sidebar %}{% endblock %}
+ </div>
+{% endblock %}
diff --git a/wger/manager/templates/mobile/base_wide.html b/wger/manager/templates/mobile/base_wide.html
new file mode 100644
index 000000000..0aefb79a0
--- /dev/null
+++ b/wger/manager/templates/mobile/base_wide.html
@@ -0,0 +1,17 @@
+{% extends "template.html" %}
+{% load i18n %}
+{% block template %}
+ {% if not user.is_authenticated or user.get_profile.is_temporary %}
+ <div data-role="popup" id="popupGuestUser" class="ui-content">
+ {% trans "You are using a guest account, data entered will be deleted after a week."%}
+ {% if not has_demo_data %}
+ <a href="{% url 'demo-entries' %}" rel="nofollow" data-role="button" data-mini="true">{% trans "Create some demo entries" %} »</a>
+ {% endif %}
+ </div>
+ {% endif %}
+ <div data-role="content">
+ <h2>{% block title %}{% endblock %}</h2>
+ {% block content %}{% endblock %}
+ {% block sidebar %}{% endblock %}
+ </div>
+{% endblock %}
diff --git a/wger/manager/templates/mobile/template.html b/wger/manager/templates/mobile/template.html
index 938e0114d..ad0a2d81c 100644
--- a/wger/manager/templates/mobile/template.html
+++ b/wger/manager/templates/mobile/template.html
@@ -74,18 +74,7 @@
- <div data-role="content">
- {% if not user.is_authenticated or user.get_profile.is_temporary %}
- <div data-role="popup" id="popupGuestUser" class="ui-content">
- {% trans "You are using a guest account, data entered will be deleted after a week."%}
- {% if not has_demo_data %}
- <a href="{% url 'demo-entries' %}" rel="nofollow" data-role="button" data-mini="true">{% trans "Create some demo entries" %} »</a>
- {% endif %}
- </div>
- {% endif %}
- {% block content %}{% endblock %}
- {% block sidebar %}{% endblock %}
- </div>
+ {% block template %}{% endblock %}
<div data-role="navbar" data-role="footer">
<ul>