Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Use a grid to render the next/back buttons in mobile pagination

Roland Geider609a47a4209b
diff --git a/wger/manager/templates/mobile/tags/pagination.html b/wger/manager/templates/mobile/tags/pagination.html
index c593fd866..bf30bef2f 100644
--- a/wger/manager/templates/mobile/tags/pagination.html
+++ b/wger/manager/templates/mobile/tags/pagination.html
@@ -2,20 +2,24 @@
<div class="pagination" >
- <div data-role="controlgroup" data-type="horizontal" style="text-align:center;">
- {% if page.has_previous %}
- <a href="?page={{ page.previous_page_number }}"
- data-role="button">« {% trans "previous" %}</a>
- {% else %}
- <button disabled="">« {% trans "previous" %}</button>
- {% endif %}
-
- {% if page.has_next %}
- <a href="?page={{ page.next_page_number }}"
- data-role="button">{%trans "next" %} »</a>
- {% else %}
- <button disabled="">{%trans "next" %} »</button>
- {% endif %}
+ <div class="ui-grid-a">
+ <div class="ui-block-a">
+ {% if page.has_previous %}
+ <a href="?page={{ page.previous_page_number }}"
+ data-role="button">« {% trans "previous" %}</a>
+ {% else %}
+ <button disabled="">« {% trans "previous" %}</button>
+ {% endif %}
+ </div>
+
+ <div class="ui-block-b">
+ {% if page.has_next %}
+ <a href="?page={{ page.next_page_number }}"
+ data-role="button">{%trans "next" %} »</a>
+ {% else %}
+ <button disabled="">{%trans "next" %} »</button>
+ {% endif %}
+ </div>
</div>