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

{% block content %}

{% if currentUser.hasPermission(permission("CREATE_OWN_TOPIC")) %}
    <p align="right">
        <img src="/ui/theme-files/old/message_add.gif" border="0" alt="" width="16" height="16" draggable="false" class="inline-icon">&nbsp;{#
        #}<a href="?_action=newtopic">{{ __("New topic") }}</a>
    </p>
    <hr color="silver" noshade>
{% endif %}

<table width="100%" border="1" cellpadding="4" cellspacing="0" bordercolor="silver" bgcolor="white">
{% for topic in ctx.topics %}
    <tr>
        <td>
            <a class="list-group-item" href="?_action=viewtopic&amp;topic={{ topic.id|url_encode }}">
                {% if topic.isLocked -%}
                    <img src="/ui/theme-files/old/lock.gif" border="0" alt="" width="16" height="16" draggable="false" class="inline-icon m-r">
                {%- endif -%}
                {{ topic.title }}
                <br>
                <small class="_time">{{ topic.creationDate.format("c") }}</small>
            </a>
        </td>
    </tr>
{% endfor %}
</table>

{% endblock %}