aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-07-06 23:15:56 +0100
committerrubenwardy <rw@rubenwardy.com>2018-07-06 23:17:56 +0100
commit67a229b8a3152329917a0e783822c71d4a53d978 (patch)
treec8eac9da8f906dfd92c6bc90833ddee367933b81 /app/templates
parent9dd3570a52027ecb8e84dacb87d66fc511812c3c (diff)
downloadcheatdb-67a229b8a3152329917a0e783822c71d4a53d978.tar.xz
Add WIP forum topic support
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/macros/topictable.html11
-rw-r--r--app/templates/packages/view.html1
-rw-r--r--app/templates/todo/list.html2
-rw-r--r--app/templates/users/user_profile_page.html5
4 files changed, 12 insertions, 7 deletions
diff --git a/app/templates/macros/topictable.html b/app/templates/macros/topictable.html
index 7ae8a35..8a6b31c 100644
--- a/app/templates/macros/topictable.html
+++ b/app/templates/macros/topictable.html
@@ -2,6 +2,7 @@
<table>
<tr>
<th>Id</th>
+ <th></th>
<th>Title</th>
{% if show_author %}<th>Author</th>{% endif %}
<th>Name</th>
@@ -9,9 +10,15 @@
<th>Actions</th>
</tr>
{% for topic in topics %}
- <tr>
+ <tr{% if topic.wip %} class="wiptopic"{% endif %}>
<td>{{ topic.topic_id }}</td>
- <td>[{{ topic.type.value }}] <a href="https://forum.minetest.net/viewtopic.php?t={{ topic.topic_id}}">{{ topic.title }}</a></td>
+ <td>
+ [{{ topic.type.value }}]
+ </td>
+ <td>
+ <a href="https://forum.minetest.net/viewtopic.php?t={{ topic.topic_id}}">{{ topic.title }}</a>
+ {% if topic.wip %}[WIP]{% endif %}
+ </td>
{% if show_author %}
<td><a href="{{ url_for('user_profile_page', username=topic.author.username) }}">{{ topic.author.display_name}}</a></td>
{% endif %}
diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html
index f69b5cf..df31ce1 100644
--- a/app/templates/packages/view.html
+++ b/app/templates/packages/view.html
@@ -296,6 +296,7 @@
<a href="https://forum.minetest.net/viewtopic.php?t={{ t.topic_id }}">
{{ t.title }} by {{ t.author.display_name }}
</a>
+ {% if t.wip %}[WIP]{% endif %}
</li>
{% endfor %}
</ul>
diff --git a/app/templates/todo/list.html b/app/templates/todo/list.html
index f2172a6..5e50c2e 100644
--- a/app/templates/todo/list.html
+++ b/app/templates/todo/list.html
@@ -65,6 +65,6 @@
<p>
There are
<a href="{{ url_for('todo_topics_page') }}">{{ topics_to_add }} packages</a>
- to be added to cdb, based on forum topics picked up by Krock's mod search.
+ to be added to cdb, based on cdb's forum parser.
</p>
{% endblock %}
diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html
index 636a610..81b5934 100644
--- a/app/templates/users/user_profile_page.html
+++ b/app/templates/users/user_profile_page.html
@@ -104,12 +104,9 @@
<div class="box-body">
<p>
- List of your topics without a matching package.
- Powered by Krock's Mod Search.
+ List of your forum topics which do not have a matching package.
</p>
-
-
{% from "macros/topictable.html" import render_topictable %}
{{ render_topictable(topics_to_add, show_author=False) }}
</div>