diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-07-04 00:14:37 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-07-04 00:38:51 +0100 |
| commit | 19e1ed8b32179e3317c807b3ab0581e3b5fb00a2 (patch) | |
| tree | 3e3409482aa7a0f8c8da8721df26350f64a00f6a /app/templates | |
| parent | eb6b1d6375841cd7b87b4f6a08b34ed5239a6354 (diff) | |
| download | cheatdb-19e1ed8b32179e3317c807b3ab0581e3b5fb00a2.tar.xz | |
Implement forum parser to increase accuracy
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/admin/list.html | 3 | ||||
| -rw-r--r-- | app/templates/macros/topictable.html | 4 | ||||
| -rw-r--r-- | app/templates/packages/view.html | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/app/templates/admin/list.html b/app/templates/admin/list.html index e5049f9..c565fe0 100644 --- a/app/templates/admin/list.html +++ b/app/templates/admin/list.html @@ -17,8 +17,7 @@ <form method="post" action="" class="box-body"> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> <select name="action"> - <option value="importusers">Create users from mod list</option> - <option value="importmodlist">Import Krock's mod list</option> + <option value="importmodlist">Import forum topics</option> <option value="importscreenshots" selected>Import screenshots from VCS</option> <option value="importdepends">Import dependencies from downloads</option> <option value="modprovides">Set provides to mod name</option> 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> diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index ab48c6e..f69b5cf 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -292,7 +292,7 @@ <ul> {% for t in similar_topics %} <li> - [{{ t.getType().value }}] + [{{ t.type.value }}] <a href="https://forum.minetest.net/viewtopic.php?t={{ t.topic_id }}"> {{ t.title }} by {{ t.author.display_name }} </a> |
