Self hosted FLOSS fitness/workout, nutrition and weight tracker
Move the guest user popup to template.html and use theme "e"
Roland Geider9aefcb9340cf
diff --git a/wger/manager/templates/mobile/base.html b/wger/manager/templates/mobile/base.htmlindex 30a229d98..423806424 100644--- a/wger/manager/templates/mobile/base.html+++ b/wger/manager/templates/mobile/base.html@@ -4,18 +4,6 @@<div id="current-url" data-current-url="{{request_full_path}}"></div><div id="current-language" data-current-language="{{language.short_name}}"></div>- {% if not user.is_authenticated or user.get_profile.is_temporary %}- <div data-role="popup" data-overlay-theme="a" 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"- data-ajax="false">{% trans "Create some demo entries" %} »</a>- {% endif %}- </div>- {% endif %}<div data-role="content" id="content"><h2>{% block title %}{% endblock %}</h2>{% block content %}{% endblock %}diff --git a/wger/manager/templates/mobile/base_wide.html b/wger/manager/templates/mobile/base_wide.htmlindex 0aefb79a0..19b41ffd8 100644--- a/wger/manager/templates/mobile/base_wide.html+++ b/wger/manager/templates/mobile/base_wide.html@@ -1,14 +1,6 @@{% 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 %}diff --git a/wger/manager/templates/mobile/template.html b/wger/manager/templates/mobile/template.htmlindex aab7d8cc6..379736599 100644--- a/wger/manager/templates/mobile/template.html+++ b/wger/manager/templates/mobile/template.html@@ -45,6 +45,20 @@<div data-role="page" id="page-{{request_full_path|slugify}}">+ {% if not user.is_authenticated or user.get_profile.is_temporary %}+ <div data-role="popup" data-overlay-theme="a" 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"+ data-theme="e"+ data-ajax="false">{% trans "Create some demo entries" %} »</a>+ {% endif %}+ </div>+ {% endif %}+<header data-role="header"><h1>wger</h1><a href="#main-panel-navigation"