Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Small changes to templates

Roland Geiderc4990688ed54
diff --git a/wger/exercises/templates/mobile/view.html b/wger/exercises/templates/mobile/view.html
index 6383bb6cb..8f684f00b 100644
--- a/wger/exercises/templates/mobile/view.html
+++ b/wger/exercises/templates/mobile/view.html
@@ -225,20 +225,7 @@ weight_log_chart({{json|safe}}, "{{svg_uuid}}", "{{reps}}")
{% trans "Back to exercise overview" %}
</a>
</p>
-<hr>
-
-{% if exercise.status == exercise.EXERCISE_STATUS_ACCEPTED %}
-<div class="alert" style="margin-top:1em;">
-<h3>{% trans "User submitted exercise" %}</h3>
-{% with username=exercise.user.username %}
-<p>{% blocktrans %}This exercise was submitted by <strong>{{username}}</strong>.{% endblocktrans %}
-{% endwith %}
-</div>
-<hr>
-{% endif %}
-
{% if perms.exercises %}
-<h3>{% trans "Options" %}</h3>
<p>
<a href="{% url 'exercise-edit' exercise.id %}"
data-role="button">
@@ -259,6 +246,16 @@ weight_log_chart({{json|safe}}, "{{svg_uuid}}", "{{reps}}")
{% trans "Delete" %}
</a>
</p>
+{% endif %}
+
+
+{% if exercise.status == exercise.EXERCISE_STATUS_ACCEPTED %}
+<div class="alert" style="margin-top:1em;">
+<h3>{% trans "User submitted exercise" %}</h3>
+{% with username=exercise.user.username %}
+<p>{% blocktrans %}This exercise was submitted by <strong>{{username}}</strong>.{% endblocktrans %}
+{% endwith %}
+</div>
<hr>
{% endif %}
diff --git a/wger/manager/templates/mobile/index.html b/wger/manager/templates/mobile/index.html
index ee49ecd15..7b2808f1b 100644
--- a/wger/manager/templates/mobile/index.html
+++ b/wger/manager/templates/mobile/index.html
@@ -3,7 +3,7 @@
{% load i18n %}
{% load staticfiles %}
-{% block title %} {% trans "Dashboard" %}{% endblock %}
+{% block title %}{% trans "Dashboard" %}{% endblock %}
{% block content %}
diff --git a/wger/manager/templates/mobile/schedule/overview.html b/wger/manager/templates/mobile/schedule/overview.html
index 3072f175b..00d612a9b 100644
--- a/wger/manager/templates/mobile/schedule/overview.html
+++ b/wger/manager/templates/mobile/schedule/overview.html
@@ -18,7 +18,7 @@ function custom_modal_init()
{% endblock %}
{% block content %}
-<table id="workout-table">
+<table id="workout-table" data-role="table">
<thead>
<tr>
<th>{% trans "Description" %}</th>