Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Improvements to the navigation panel

Roland Geider4f4ba87e4629
diff --git a/wger/manager/templates/mobile/navigation.html b/wger/manager/templates/mobile/navigation.html
index 6c81055ae..fdfe03a21 100644
--- a/wger/manager/templates/mobile/navigation.html
+++ b/wger/manager/templates/mobile/navigation.html
@@ -1,5 +1,16 @@
{% load i18n %}{% load url from future %}{% load cache %}
-<div data-role="collapsible-set" data-inset="false">
+
+{# #}
+{# Close button for panel #}
+{# #}
+<ul data-role="listview" data-theme="b" >
+ <li data-icon="delete">
+ <a href="#" data-rel="close">{% trans "Close" %}</a>
+ </li>
+</ul>
+
+
+<div data-role="collapsible-set" data-inset="false" style="margin-top:1.5em;">
{# #}
{# User tab #}
@@ -36,7 +47,7 @@
{% endif %}
{% if perms.exercises %}
- <li>{% trans "Administration" %}</li>
+ <li data-role="list-divider">{% trans "Administration" %}</li>
<li><a href="{% url 'exercise-pending' %}">{% trans "Exercises pending review" %}</a></li>
{% endif %}
</ul>
@@ -80,7 +91,7 @@
<li><a href="{% url 'software:features' %}">{% trans "Features" %}</a></li>
<li><a href="{% url 'software:contribute' %}">{% trans "Contribute!" %} </a></li>
<li><a href="{% url 'software:issues' %}">{% trans "Problems and wishes" %} </a></li>
- <li class="nav-header">{% trans "Developers" %}</li>
+ <li data-role="list-divider">{% trans "Developers" %}</li>
<li><a href="{% url 'software:code' %}">{% trans "Get the code" %} </a></li>
<li><a href="{% url 'software:license' %}">{% trans "License" %} </a></li>
<li><a href="{% url 'software:changelog' %}">{% trans "Changelog" %} </a></li>
@@ -88,7 +99,7 @@
<li><a href="https://www.transifex.com/projects/p/wger-workout-manager/">{% trans "Translate with Transifex" %} </a></li>
{% cache cache_timeout user-admin-software user.id language.id %}
{% if perms.exercises %}
- <li>{% trans "Administration" %}</li>
+ <li data-role="list-divider">{% trans "Administration" %}</li>
<li><a href="{% url 'config:language-overview' %}">{% trans "Languages" %} </a></li>
{% endif %}
{% endcache %}
@@ -102,56 +113,37 @@
<h4>{% trans "Options" %}</h4>
+<br>
-<div data-role="collapsible-set" data-inset="false">
+<ul data-role="listview" data-inset="false">
+ {# #}
+ {# Login tab #}
+ {# #}
+ {% if user.is_authenticated and not user.get_profile.is_temporary %}
+ <li>
+ <a href="{% url 'wger.manager.views.user.preferences' %}">
+ {% trans "Preferences" %}
+ </a>
+ </li>
+ <li>
+ <a href="{% url 'logout' %}" data-ajax="false">{% trans "Logout" %}</a>
+ </li>
+ {% else %}
+ <li>
+ <a href="{% url 'login' %}">{% trans "Login" %}</a>
+ </li>
+ <li>
+ <a href="{% url 'wger.manager.views.user.registration' %}">{% trans "Register" %}</a>
+ </li>
+ {% endif %}
{# #}
{# Site version #}
{# #}
- <div data-role="collapsible" data-content-theme="c">
- <h3>{% trans "Site version" %}</h3>
- <ul data-role="listview">
- <li><a href="?flavour=full" data-ajax="false">{% trans "Desktop version" %}</a></li>
- </ul>
- </div>
+ <li><a href="?flavour=full" data-ajax="false">{% trans "Desktop version" %}</a></li>
- {# #}
- {# Login tab #}
- {# #}
- <div data-role="collapsible" data-content-theme="c">
- {% if user.is_authenticated and not user.get_profile.is_temporary %}
- <h3>{% trans "Options" %}</h3>
- <ul data-role="listview">
- <li>
- <a href="{% url 'wger.manager.views.user.preferences' %}">
- {% trans "Preferences" %}
- </a>
- </li>
- <li>
- <a href="{% url 'logout' %}" data-ajax="false">{% trans "Logout" %}</a>
- </li>
- </ul>
- {% else %}
- <h3>{% trans "Login" %}</h3>
- <ul data-role="listview">
- <li>
- <a href="{% url 'login' %}">{% trans "Login" %}</a>
- </li>
- <li>
- <a href="{% url 'wger.manager.views.user.registration' %}">{% trans "Register" %}</a>
- </li>
- </ul>
- {% endif %}
- </div>
+</ul>
-</div>
-<a href=""
- data-rel="close"
- data-role="button"
- data-icon="delete"
- data-iconpos="notext"
- data-inline="true"
- data-theme="b"></a>
\ No newline at end of file