From 27b59ebdfa189f3ccf6b2989951407e6b0fe1076 Mon Sep 17 00:00:00 2001 From: citrons Date: Mon, 16 Jun 2025 23:22:06 -0500 Subject: display a message when there are no threads --- apioforum/static/style.css | 14 ++++++++++---- apioforum/templates/view_forum.html | 5 +++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/apioforum/static/style.css b/apioforum/static/style.css index 8db66b2..2c2b6ec 100644 --- a/apioforum/static/style.css +++ b/apioforum/static/style.css @@ -243,12 +243,10 @@ nav#pages .pageno { align-self: center; } color: var(--dark-colour); } -.listing-header, .more-subforums summary { +.listing-header, .listing-box, .more-subforums summary { font-weight: normal; font-size: smaller; - border-left: 1px solid var(--dark-colour); - border-right: 1px solid var(--dark-colour); - border-top: 1px solid var(--dark-colour); + border: 1px solid var(--dark-colour); margin-top: -1px; margin-bottom: 0; padding: 2px 10px 2px 10px; @@ -261,6 +259,14 @@ nav#pages .pageno { align-self: center; } background-color: var(--alternating-colour-even); } +.listing-message { + margin: 0; + padding: 20px; + background-color: var(--alternating-colour-odd); + color: var(--read-colour); + text-align: center; +} + .thread-listing-tags { display: flex; align-items: center; diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index 8ab6f42..c315550 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -190,6 +190,11 @@ you do not have permission to create threads in this forum {% endif %} {%endfor%} + {% if not threads %} +

+ no threads{% if tagfilter_tag %} with that tag{% endif %} +

+ {% endif %} -- cgit v1.2.3