summaryrefslogtreecommitdiff
path: root/src/application/templates/bootstrap-3/view_topics.twig
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/templates/bootstrap-3/view_topics.twig')
-rw-r--r--src/application/templates/bootstrap-3/view_topics.twig25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/application/templates/bootstrap-3/view_topics.twig b/src/application/templates/bootstrap-3/view_topics.twig
new file mode 100644
index 0000000..899ebe7
--- /dev/null
+++ b/src/application/templates/bootstrap-3/view_topics.twig
@@ -0,0 +1,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 %}