aboutsummaryrefslogtreecommitdiff
path: root/app/templates/macros
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-07-04 00:14:37 +0100
committerrubenwardy <rw@rubenwardy.com>2018-07-04 00:38:51 +0100
commit19e1ed8b32179e3317c807b3ab0581e3b5fb00a2 (patch)
tree3e3409482aa7a0f8c8da8721df26350f64a00f6a /app/templates/macros
parenteb6b1d6375841cd7b87b4f6a08b34ed5239a6354 (diff)
downloadcheatdb-19e1ed8b32179e3317c807b3ab0581e3b5fb00a2.tar.xz
Implement forum parser to increase accuracy
Diffstat (limited to 'app/templates/macros')
-rw-r--r--app/templates/macros/topictable.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/templates/macros/topictable.html b/app/templates/macros/topictable.html
index a0c5b1e..7ae8a35 100644
--- a/app/templates/macros/topictable.html
+++ b/app/templates/macros/topictable.html
@@ -11,12 +11,12 @@
{% 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>[{{ topic.type.value }}] <a href="https://forum.minetest.net/viewtopic.php?t={{ topic.topic_id}}">{{ topic.title }}</a></td>
{% if show_author %}
<td><a href="{{ url_for('user_profile_page', username=topic.author.username) }}">{{ topic.author.display_name}}</a></td>
{% endif %}
<td>{{ topic.name or ""}}</td>
- <td><a href="{{ topic.link }}">{{ topic.link | domain }}</a></td>
+ <td>{% if topic.link %}<a href="{{ topic.link }}">{{ topic.link | domain }}</a>{% endif %}</td>
<td>
<a href="{{ url_for('create_edit_package_page', author=topic.author.username, repo=topic.getRepoURL(), forums=topic.topic_id, title=topic.title, bname=topic.name) }}">Create</a>
</td>