aboutsummaryrefslogtreecommitdiff
path: root/app/templates/todo/topics.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-06-05 23:45:15 +0100
committerrubenwardy <rw@rubenwardy.com>2018-06-05 23:45:15 +0100
commitc9542427b41d9223508a64225a4e6e64671b1c22 (patch)
tree7962aa5468bd5665e645a953af23b020b6f9e6da /app/templates/todo/topics.html
parent8601c5e075ecd35d4c9f155e8477ad719b41fe3a (diff)
downloadcheatdb-c9542427b41d9223508a64225a4e6e64671b1c22.tar.xz
Add create links to topic table
Diffstat (limited to 'app/templates/todo/topics.html')
-rw-r--r--app/templates/todo/topics.html21
1 files changed, 2 insertions, 19 deletions
diff --git a/app/templates/todo/topics.html b/app/templates/todo/topics.html
index 77f32c0..f53c4eb 100644
--- a/app/templates/todo/topics.html
+++ b/app/templates/todo/topics.html
@@ -12,23 +12,6 @@ Topics to be Added
{{ topics | count }} remaining.
</p>
- <table>
- <tr>
- <th>Id</th>
- <th>Title</th>
- <th>Author</th>
- <th>Name</th>
- <th>Link</th>
- </tr>
- {% for topic in topics %}
- <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><a href="{{ url_for('user_profile_page', username=topic.author.username) }}">{{ topic.author.display_name}}</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) }}
{% endblock %}