Add create links to topic table

This commit is contained in:
rubenwardy
2018-06-05 23:45:15 +01:00
parent 8601c5e075
commit c9542427b4
6 changed files with 64 additions and 60 deletions

View File

@@ -108,22 +108,10 @@
Powered by Krock's Mod Search.
</p>
<table>
<tr>
<th>Id</th>
<th>Title</th>
<th>Name</th>
<th>Link</th>
</tr>
{% for topic in topics_to_add %}
<tr>
<td>{{ topic.topic_id }}</td>
<td>[{{ topic.getType().value }}] <a href="https://forum.minetest.net/viewtopic.php?t={{ topic.topic_id}}">{{ topic.title }}</a></td>
<td>{{ topic.name or ""}}</td>
<td><a href="{{ topic.link }}">{{ topic.link | domain }}</a></td>
</tr>
{% endfor %}
</table>
{% from "macros/topictable.html" import render_topictable %}
{{ render_topictable(topics_to_add, show_author=False) }}
</div>
</div>
{% endif %}