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