aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/static/css
diff options
context:
space:
mode:
authorzorun <github@bitsofnetworks.org>2020-02-20 09:43:00 +0100
committerGitHub <noreply@github.com>2020-02-20 09:43:00 +0100
commit9378694034d6e9040548b9e65ea65769fb8272b7 (patch)
treeaace02ca3c9a87acae84bd6f5fed5cfe3faefa42 /ihatemoney/static/css
parent72653c0d3ac5ea5265479e7e53ff39cfe62a00ce (diff)
downloadihatemoney-mirror-9378694034d6e9040548b9e65ea65769fb8272b7.zip
ihatemoney-mirror-9378694034d6e9040548b9e65ea65769fb8272b7.tar.gz
ihatemoney-mirror-9378694034d6e9040548b9e65ea65769fb8272b7.tar.bz2
Paginate the list of bills (#480)
We display 100 bills on each page. We only show previous/next buttons (at the top of the view) and the list of pages (at the bottom) if there are more than one pages. This uses built-in pagination support from Flask-SQLAlchemy: https://flask-sqlalchemy.palletsprojects.com/en/2.x/api/#flask_sqlalchemy.BaseQuery.paginate https://flask-sqlalchemy.palletsprojects.com/en/2.x/api/#flask_sqlalchemy.Pagination
Diffstat (limited to 'ihatemoney/static/css')
-rw-r--r--ihatemoney/static/css/main.css9
1 files changed, 9 insertions, 0 deletions
diff --git a/ihatemoney/static/css/main.css b/ihatemoney/static/css/main.css
index 1a7dc1f..9c02b28 100644
--- a/ihatemoney/static/css/main.css
+++ b/ihatemoney/static/css/main.css
@@ -272,6 +272,15 @@ footer .footer-left {
margin-top: 30px;
}
+#previous-page {
+ 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;