aboutsummaryrefslogtreecommitdiff
path: root/app/templates/macros/topictable.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/macros/topictable.html')
-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>