diff options
author | ubq323 <ubq323> | 2021-06-15 23:34:36 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-06-15 23:34:36 +0000 |
commit | 6096acce8b922af98e6846a687fcfd19cf0370cc (patch) | |
tree | 6cbf159440a6069f54c01c3143afc77a0f3056cc /apioforum/templates/view_forum.html | |
parent | 73d601135ccd40878c4ec14036737a6702478deb (diff) |
make tags less annoying to look at on small screens (i think)tags
Diffstat (limited to 'apioforum/templates/view_forum.html')
-rw-r--r-- | apioforum/templates/view_forum.html | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index 6958c20..22f24c1 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -13,9 +13,9 @@ <div class="threadlistings"> <div class="threadlisting"> <div class="threadlisting-part threadlisting-part-title threadlisting-header"> - name + name<span class="only-small"> & tags</span> </div> - <div class="threadlisting-part threadlisting-part-tags threadlisting-header"> + <div class="threadlisting-part threadlisting-part-tags threadlisting-header only-big"> tags </div> <div class="threadlisting-part threadlisting-part-creator threadlisting-header"> @@ -36,8 +36,16 @@ </div> {%for thread in threads%} <div class="threadlisting"> - <div class="threadlisting-part threadlisting-part-title"><a href="{{url_for('thread.view_thread',thread_id=thread.id)}}">{{thread.title}}</a></div> - <div class="threadlisting-part threadlisting-part-tags"> + <div class="threadlisting-part threadlisting-part-title"><a href="{{url_for('thread.view_thread',thread_id=thread.id)}}">{{thread.title}}</a> + {% if thread_tags[thread.id]|length > 0 %} + <span class="only-small"> + {% for the_tag in thread_tags[thread.id] %} + {{tag(the_tag)}} + {% endfor %} + </span> + {%endif%} + </div> + <div class="threadlisting-part threadlisting-part-tags only-big"> {% for the_tag in thread_tags[thread.id] %} {{tag(the_tag)}} {% endfor %} |