summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/view_forum.html
blob: 30fcb64d8e5cf1c0bf14eae33a629650fb142102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% extends 'base.html' %}
{% from 'common.html' import ts %}
{% block header %}<h1>{% block title %}apioforum{%endblock%}</h1>{%endblock%}
{%block content%}
<p>welcome to the apioforum</p>
<p>forum rules: do not be a bad person. do not do bad things.</p>
<a class="actionbutton" href="{{url_for('forum.create_thread')}}">create new thread</a>
<br><br>
<div class="threadlistings">
<div class="threadlisting">
    <div class="threadlisting-part threadlisting-part-title threadlisting-header">
        name
    </div>
    <div class="threadlisting-part threadlisting-part-id threadlisting-header">
        id
    </div>
    <div class="threadlisting-part threadlisting-part-creator threadlisting-header">
        creator
    </div>
    <div class="threadlisting-part threadlisting-part-created threadlisting-header">
        created
    </div>
    <div class="threadlisting-part threadlisting-part-updated threadlisting-header">
        last updated
    </div>
    <div class="threadlisting-part threadlisting-part-numreplies threadlisting-header">
        replies
    </div>
</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-id">#{{thread.id}}</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>
    <div class="threadlisting-part threadlisting-part-numreplies">{{thread.num_replies}}</div>
</div>
{%endfor%}
</div>
{%endblock%}