From 08e180dd6503a78e031a3ddf28c3f95351176775 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Sun, 13 Aug 2023 18:23:22 -0700 Subject: [PATCH] Tweaking HTML some more * Add some margin space around the prev/next links * Increase prev/next link font size * Add prev/next text without link when we're on the first/last page * Add useful placeholder text to the "board" search Signed-off-by: Alek Ratzloff --- chanbans/templates/index.html | 42 ++++++++++++++++++++++------------- static/style00.css | 5 +++++ 2 files changed, 32 insertions(+), 15 deletions(-) diff --git a/chanbans/templates/index.html b/chanbans/templates/index.html index f946d60..051125b 100644 --- a/chanbans/templates/index.html +++ b/chanbans/templates/index.html @@ -5,7 +5,7 @@ {% block main %} {# pagination #} - {% if query['offset'] != 0 %} - Prev - {% endif %} - | - {% if posts|length == config.HTTP_RESULTS_PER_PAGE %} - Next - {% endif %} +
+ {% if query['offset'] != 0 %} + Prev + {% else %} + Prev + {% endif %} + | + {% if posts|length == config.HTTP_RESULTS_PER_PAGE %} + Next + {% else %} + Next + {% endif %} +
@@ -74,11 +80,17 @@ {% endfor %}
{# pagination #} - {% if query['offset'] != 0 %} - Prev - {% endif %} - | - {% if posts|length == config.HTTP_RESULTS_PER_PAGE %} - Next - {% endif %} +
+ {% if query['offset'] != 0 %} + Prev + {% else %} + Prev + {% endif %} + | + {% if posts|length == config.HTTP_RESULTS_PER_PAGE %} + Next + {% else %} + Next + {% endif %} +
{% endblock main %} diff --git a/static/style00.css b/static/style00.css index 35b9462..dcc4ca9 100644 --- a/static/style00.css +++ b/static/style00.css @@ -37,6 +37,11 @@ header { width: 100%; } +.pagecount { + margin: 5px 0px; + font-size: large; +} + table { border-top: 1px solid black; border-left: 1px solid black;