Add topics todo list based on forum parser

This commit is contained in:
rubenwardy
2018-06-02 18:22:57 +01:00
parent 8984adaa72
commit 70afb94d3b
10 changed files with 203 additions and 10 deletions

View File

@@ -98,4 +98,27 @@
{% from "macros/packagegridtile.html" import render_pkggrid %}
{{ render_pkggrid(packages, show_author=False) }}
{% if topics_to_add %}
<div class="box box_grey">
<h2>Topics to Add</h2>
<table class="box-body">
<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>
</div>
{% endif %}
{% endblock %}