diff options
Diffstat (limited to 'src/application/templates/old/view_topics.twig')
-rw-r--r-- | src/application/templates/old/view_topics.twig | 30 |
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"> {# + #}<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&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 %} |