summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/common.html
blob: d4178d78d9c6665fe17f335c83fc64d221d6a7bb (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
{% macro disp_post(post, buttons=False) %}
<div class="post">
    <div class="post-heading">
        <span class="post-heading-a">
            <span class="post-heading-em">{{post.author}}</span> {{post.created}}
        </span>
        <span class="post-heading-b">
        {% if buttons and post.author == g.user %}
            <a class="actionbutton"
               href="{{url_for('thread.edit_post',post_id=post.id)}}">
                edit
            </a>
            <a class="actionbutton"
               href="{{url_for('thread.delete_post',post_id=post.id)}}">
                delete
            </a>
        {% endif %}
        #{{post.id}}
        </span>
    </div>
    <div class="post-content">
        {{ caller() }}
    </div>
</div>
{% endmacro %}