diff options
author | citrons <citrons@mondecitronne.com> | 2025-06-16 23:22:06 -0500 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2025-06-17 12:05:31 +0100 |
commit | 27b59ebdfa189f3ccf6b2989951407e6b0fe1076 (patch) | |
tree | 7fc885994a5bace15e8b5735976bedaebae3624e | |
parent | ebf7fe7336de9567360bfa33e201165a4ddd1a0b (diff) |
display a message when there are no threads
-rw-r--r-- | apioforum/static/style.css | 14 | ||||
-rw-r--r-- | 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 %} </div> {%endfor%} + {% if not threads %} + <p class="listing-box listing-message"> + no threads{% if tagfilter_tag %} with that tag{% endif %} + </p> + {% endif %} </div> |