aboutsummaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-17 00:51:31 -0500
committerubq323 <ubq323@ubq323.website>2025-06-17 12:05:42 +0100
commit059ad172d2376ecd1eeb7551c6321bd13d3314f0 (patch)
tree05d3226815a0d7dd8bbecf930283f22796366131 /apioforum/templates
parent763a0cf9ecd7fa9162b02eaef14e7bfc8290c115 (diff)
better, fancier more button
it respects the alternating color scheme
Diffstat (limited to 'apioforum/templates')
-rw-r--r--apioforum/templates/view_forum.html10
1 files changed, 4 insertions, 6 deletions
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html
index 94238a7..2bdb5a4 100644
--- a/apioforum/templates/view_forum.html
+++ b/apioforum/templates/view_forum.html
@@ -105,8 +105,8 @@ you do not have permission to create threads in this forum
{{ pagination_nav(page,max_pageno,'forum.view_forum',forum_id=forum.id) }}
-{% macro subforum_listing(subforum) %}
- <div class="listing">
+{% macro subforum_listing(subforum,hidden=False) %}
+ <div class="listing {%if hidden%}hidden-subforum{%endif%}">
<div class="listing-main {% if not is_read('forum', subforum.id) %}unread{% endif %}">
<div class="listing-title">
<a href="{{url_for('forum.view_forum',forum_id=subforum.id)}}">
@@ -131,12 +131,10 @@ you do not have permission to create threads in this forum
{{subforum_listing(subforum)}}
{% endfor %}
{% if hidden_subforums %}
- <details class="more-subforums">
- <summary>more...</summary>
+ <details class="more-subforums"><summary>more...</summary></details>
{% for subforum in hidden_subforums %}
- {{subforum_listing(subforum)}}
+ {{subforum_listing(subforum,hidden=True)}}
{% endfor %}
- </details>
{% endif %}
</div>
<h2 class="listing-header">threads</h2>