summaryrefslogtreecommitdiff
path: root/src/application/templates/old/view_topics.twig
diff options
context:
space:
mode:
authorJonas Kohl2024-12-10 17:15:10 +0100
committerJonas Kohl2024-12-10 17:15:10 +0100
commit7d685c5e64149e20c7dc8977f645e050be53ddfd (patch)
tree44a931c23979aaa2e22b079f8af9232f490eb4d3 /src/application/templates/old/view_topics.twig
parent7c9f91333da983da37d3dc837fa61ef0bff64549 (diff)
Add classic theme
Diffstat (limited to 'src/application/templates/old/view_topics.twig')
-rw-r--r--src/application/templates/old/view_topics.twig30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/application/templates/old/view_topics.twig b/src/application/templates/old/view_topics.twig
new file mode 100644
index 0000000..e6e69b7
--- /dev/null
+++ b/src/application/templates/old/view_topics.twig
@@ -0,0 +1,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 %}