From 9267a2c6296034af399c66c83b2ac5a3cbd999b6 Mon Sep 17 00:00:00 2001 From: citrons Date: Mon, 16 Jun 2025 23:22:10 -0500 Subject: pagination links on the bottom of the page --- apioforum/static/style.css | 9 +++++---- apioforum/templates/common.html | 4 ++-- apioforum/templates/view_forum.html | 1 + apioforum/templates/view_thread.html | 1 + 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/apioforum/static/style.css b/apioforum/static/style.css index 40df339..0da7216 100644 --- a/apioforum/static/style.css +++ b/apioforum/static/style.css @@ -190,21 +190,22 @@ nav#navbar p:first-of-type { margin-left:0.5em } nav#navbar a { color: var(--blue); text-decoration: none } nav#navbar .links { display: flex; } -nav#pages { +nav.pages { display: flex; text-align: center; justify-content: space-between; margin-bottom: -1px; + margin-top: -1px; padding: 5px; border: 1px solid var(--border-colour); background-color: var(--alternating-colour-even); - position: sticky; top: 0; } +.pages-top { position: sticky; } -nav#pages .links > a:not([href]) { color: var(--gray); } +nav.pages .links > a:not([href]) { color: var(--gray); } -nav#pages .pageno { align-self: center; } +nav.pages .pageno { align-self: center; } /* todo: make the navbar less bad */ .flashmsg { border: 1px solid var(--border-colour); background-color: yellow; max-width: max-content; padding: 5px; clear: both; color: black} diff --git a/apioforum/templates/common.html b/apioforum/templates/common.html index 829e36a..2a19b5c 100644 --- a/apioforum/templates/common.html +++ b/apioforum/templates/common.html @@ -156,8 +156,8 @@ {% endmacro %} -{% macro pagination_nav(page,max_pageno,view) %} -