Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Change order of some options, add contact links

Roland Geider643f89cf7eed
diff --git a/wger/manager/templates/mobile/navigation.html b/wger/manager/templates/mobile/navigation.html
index 4d5d856a5..bdb738248 100644
--- a/wger/manager/templates/mobile/navigation.html
+++ b/wger/manager/templates/mobile/navigation.html
@@ -54,7 +54,7 @@
<h3>{% trans "Exercises" %}</h3>
<ul data-role="listview" data-divider-theme="a">
<li><a href="{% url 'wger.exercises.views.exercises.overview' %}">{% trans "Exercises" %}</a></li>
- <li><a href="{% url 'muscle-overview' %}">{% trans "Muscle overview" %}</a></li>
+ <li><a href="{% url 'muscle-overview' %}" data-ajax="false">{% trans "Muscle overview" %}</a></li>
{% if user.is_authenticated and not user.get_profile.is_temporary %}
<li><a href="{% url 'exercise-add' %}">{% trans "Add new exercise" %}</a><li>
{% endif %}
@@ -72,8 +72,8 @@
<div data-role="collapsible" data-content-theme="c">
<h3>{% trans "Weight" %}</h3>
<ul data-role="listview">
- <li><a href="{% url 'wger.weight.views.overview' %}" rel="nofollow">{% trans "Weight overview" %}</a></li>
- <li><a href="{% url 'weight-add' %}" rel="nofollow">{% trans "Add weight entry" %}</a></li>
+ <li><a href="{% url 'wger.weight.views.overview' %}" rel="nofollow" data-ajax="false">{% trans "Weight overview" %}</a></li>
+ <li><a href="{% url 'weight-add' %}" rel="nofollow" >{% trans "Add weight entry" %}</a></li>
</ul>
</div>
@@ -137,9 +137,6 @@
{% trans "Preferences" %}
</a>
</li>
- <li>
- <a href="{% url 'logout' %}" data-ajax="false">{% trans "Logout" %}</a>
- </li>
{% else %}
<li>
<a href="{% url 'login' %}" data-ajax="false">{% trans "Login" %}</a>
@@ -149,12 +146,17 @@
</li>
{% endif %}
+ {# #}
+ {# Contact #}
+ {# #}
+ <li><a href="{% url 'contact' %}">{% trans "Get in touch" %}</a></li>
+ <li><a href="{% url 'about' %}">{% trans "About" %}</a></li>
+
{# #}
{# Site version #}
{# #}
<li><a href="?flavour=full" data-ajax="false">{% trans "Desktop version" %}</a></li>
-
{# #}
{# Language #}
{# #}
@@ -165,6 +167,16 @@
</a>
</li>
+
+ {# #}
+ {# Logout #}
+ {# #}
+ {% if user.is_authenticated and not user.get_profile.is_temporary %}
+ <li>
+ <a href="{% url 'logout' %}" data-ajax="false">{% trans "Logout" %}</a>
+ </li>
+ {% endif %}
+
</ul>
diff --git a/wger/manager/templates/mobile/user/preferences.html b/wger/manager/templates/mobile/user/preferences.html
index e31cd1a1c..c0e22d0d5 100644
--- a/wger/manager/templates/mobile/user/preferences.html
+++ b/wger/manager/templates/mobile/user/preferences.html
@@ -38,14 +38,14 @@
{% block sidebar %}
<h3>{% trans "Options" %}</h3>
<p>
- <a href="{% url 'logout' %}"
+ <a href="{% url 'api-key' %}"
data-role="button">
- <img src="{% static 'images/icons/logout.svg' %}"
+ <img src="{% static 'images/icons/internet.svg' %}"
width="32"
height="32"
- alt="{% trans 'Logout' %}"
- title="{% trans 'Logout' %}">
- {% trans "Logout" %}</a>
+ alt="{% trans 'API key' %}"
+ title="{% trans 'API key' %}">
+ {% trans "API key" %}</a>
</p>
<p>
<a href="{% url 'change-password' %}"
@@ -58,13 +58,13 @@
{% trans "Change password" %}</a>
</p>
<p>
- <a href="{% url 'api-key' %}"
+ <a href="{% url 'logout' %}"
data-role="button">
- <img src="{% static 'images/icons/internet.svg' %}"
+ <img src="{% static 'images/icons/logout.svg' %}"
width="32"
height="32"
- alt="{% trans 'API key' %}"
- title="{% trans 'API key' %}">
- {% trans "API key" %}</a>
+ alt="{% trans 'Logout' %}"
+ title="{% trans 'Logout' %}">
+ {% trans "Logout" %}</a>
</p>
{% endblock %}
diff --git a/wger/manager/templates/schedule/overview.html b/wger/manager/templates/schedule/overview.html
index b723f35e6..599ab4989 100644
--- a/wger/manager/templates/schedule/overview.html
+++ b/wger/manager/templates/schedule/overview.html
@@ -43,9 +43,9 @@ function custom_modal_init()
{% empty %}
<tr>
<td colspan="3">
- <a href="{% url 'schedule-add' %}" class="modal-dialog btn btn-block">
+ <a href="{% url 'schedule-add' %}" class="modal-dialog btn btn-block">
{% trans "No schedules found." %} {% trans "Add one now." %}
- </a>
+ </a>
</td>
</tr>
{% endfor %}