summaryrefslogtreecommitdiff
path: root/src/application/templates/bootstrap-3/view_topics.twig
blob: 899ebe7b0ec68a010c8ecde20c41bc2bec8cf6cb (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
{% extends "base.twig" %}

{% block content %}

{% if currentUser.hasPermission(permission("CREATE_OWN_TOPIC")) %}
    <p class="text-right">
        <a href="?_action=newtopic" class="btn btn-success"><span class="fa fa-plus" aria-hidden="true"></span> {{ __("New topic") }}</a>
    </p>
{% endif %}

<div class="list-group">
    {% for topic in ctx.topics %}
        <a class="list-group-item" href="?_action=viewtopic&amp;topic={{ topic.id|url_encode }}">
            <h4 class="list-group-item-heading">
                {% if topic.isLocked %}
                    <span class="fa fa-lock text-muted" aria-hidden="true"></span>
                {% endif %}
                {{ topic.title }}
            </h4>
            <p class="list-group-item-text _time">{{ topic.creationDate.format("c") }}</p>
        </a>
    {% endfor %}
</div>

{% endblock %}