diff options
-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> |