macros.jinja 416 Bytes
Newer Older
Skia's avatar
Skia committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
{% macro display_forum(forum) %}
<div class="forum {% if forum.is_category %}category{% endif %}">
    <p>
        {% if not forum.is_category %}
        <a href="{{ url('forum:view_forum', forum_id=forum.id) }}">View</a>
        {% endif %}
        <a href="{{ url('forum:edit_forum', forum_id=forum.id) }}">Edit</a>
    </p>
    <h5>{{ forum.name }}</h5>
    <p>{{ forum.description }}</p>
</div>
{% endmacro %}