diff options
author | ubq323 <ubq323> | 2021-06-15 00:28:08 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-06-15 00:28:08 +0000 |
commit | 1b9ac4113239d2e963787ba5048a473394ee0a7c (patch) | |
tree | 41ec237d1f93c88b4e8b670b8335573361b7b660 /apioforum/templates/view_forum.html | |
parent | 4bdf927a717fb3c4a4d21991072d4b3d3a639ed7 (diff) |
add stylings for tags, and change styles of view forum page to give us more space too
Diffstat (limited to 'apioforum/templates/view_forum.html')
-rw-r--r-- | apioforum/templates/view_forum.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index a4a1ee1..ee0e496 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -1,7 +1,8 @@ {% extends 'base.html' %} -{% from 'common.html' import ts %} +{% from 'common.html' import ts, tag %} {% block header %}<h1>{% block title %}apioforum{%endblock%}</h1>{%endblock%} -{%block content%} +{%block nmcontent%} +<main class="widemain"> <p>welcome to the apioforum</p> <p>forum rules: do not be a bad person. do not do bad things.</p> {% if g.user %} @@ -14,6 +15,9 @@ <div class="threadlisting-part threadlisting-part-title threadlisting-header"> name </div> + <div class="threadlisting-part threadlisting-part-tags threadlisting-header"> + tags + </div> <div class="threadlisting-part threadlisting-part-creator threadlisting-header"> creator </div> @@ -33,6 +37,7 @@ {%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">{{tag("the","black","yellow")}} {{tag("bees","yellow","black")}} {{tag("excellent","black","lightsteelblue")}}</div> <div class="threadlisting-part threadlisting-part-creator">{{thread.creator}}</div> <div class="threadlisting-part threadlisting-part-created">{{ts(thread.created)}}</div> <div class="threadlisting-part threadlisting-part-updated">{{ts(thread.updated)}}</div> @@ -41,4 +46,5 @@ </div> {%endfor%} </div> +</main> {%endblock%} |