diff options
author | ubq323 <ubq323> | 2021-06-06 16:54:26 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-06-06 16:54:26 +0000 |
commit | e2b8fc0582776a366def582d73b686c8968b44c3 (patch) | |
tree | 454bbc31040f1ca14a898d19bb7d749181dfff3f /apioforum/templates/view_forum.html | |
parent | 6a2a05cd0e6aab46ca610dda3c2f408c6b9bd9e2 (diff) |
slightly improve css, add stubs of edit and delete, refactor some things
Diffstat (limited to 'apioforum/templates/view_forum.html')
-rw-r--r-- | apioforum/templates/view_forum.html | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index 13e35a8..c7f88f1 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -3,22 +3,15 @@ {%block content%} <p>the</p> <a href="{{url_for('forum.create_thread')}}">create thread</a> -<table> - <tr> - <th>id</th> - <th>title</th> - <th>creator</th> - <th>created</th> - <th>updated</th> - </tr> +<div class="threadlistings"> {%for thread in threads%} -<tr> - <td>#{{thread.id}}</td> - <td><a href="{{url_for('thread.view_thread',thread_id=thread.id)}}">{{thread.title}}</a></td> - <td>{{thread.creator}}</td> - <td>{{thread.created}}</td> - <td>{{thread.updated}}</td> -</tr> +<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-id">#{{thread.id}}</div> + <div class="threadlisting-part threadlisting-part-creator">{{thread.creator}}</div> + <div class="threadlisting-part threadlisting-part-created">{{thread.created}}</div> + <div class="threadlisting-part threadlisting-part-updated">{{thread.updated}}</div> +</div> {%endfor%} -</table> +</div> {%endblock%} |