From 97447c96f54d9b680ae4af235c8c1eaa4b26a0a0 Mon Sep 17 00:00:00 2001 From: zorun Date: Wed, 20 Oct 2021 00:53:50 +0200 Subject: [PATCH] Improve pagination style (#873) The style for top and bottom pagination was different, and the top part was confusing. Also translate bottom pagination text. Co-authored-by: Baptiste Jonglez --- ihatemoney/static/css/main.css | 7 +------ ihatemoney/templates/list_bills.html | 22 +++++++++++++--------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/ihatemoney/static/css/main.css b/ihatemoney/static/css/main.css index d71c9bd3..5b442ab5 100644 --- a/ihatemoney/static/css/main.css +++ b/ihatemoney/static/css/main.css @@ -290,15 +290,10 @@ footer .footer-left { margin-top: 30px; } -#previous-page { +#pagination-top { margin-top: 30px; } -#next-page { - margin-top: 30px; - padding-left: 2em; -} - /* Avoid text color flickering when it loose focus as the modal appears */ .btn-primary[data-toggle="modal"] { color: #fff; diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index 0240191f..596e45d1 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -84,13 +84,17 @@ {% if bills.pages > 1 %} - - « {{ _("Newer bills") }} - - - - {{ _("Older bills") }} » - + {% endif %} {% if bills.total > 0 %} @@ -146,7 +150,7 @@ {% if bills.pages > 1 %} {% endif %}