diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-08-25 18:20:45 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-08-25 18:20:45 +0100 |
| commit | 36000b159273d06aba3fb56eab2cd78099b7e54a (patch) | |
| tree | 57a7289704b2cb9d455deb10862dfd146b20c0b2 /app/templates/macros/topictable.html | |
| parent | b296b9b299fa4d07bedc25c791d1a039d4b9fb72 (diff) | |
| download | cheatdb-36000b159273d06aba3fb56eab2cd78099b7e54a.tar.xz | |
Add list of relevant forum topics to last page of results
Diffstat (limited to 'app/templates/macros/topictable.html')
| -rw-r--r-- | app/templates/macros/topictable.html | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/app/templates/macros/topictable.html b/app/templates/macros/topictable.html deleted file mode 100644 index 8a6b31c..0000000 --- a/app/templates/macros/topictable.html +++ /dev/null @@ -1,33 +0,0 @@ -{% macro render_topictable(topics, show_author=True) -%} -<table> - <tr> - <th>Id</th> - <th></th> - <th>Title</th> - {% if show_author %}<th>Author</th>{% endif %} - <th>Name</th> - <th>Link</th> - <th>Actions</th> - </tr> - {% for topic in topics %} - <tr{% if topic.wip %} class="wiptopic"{% endif %}> - <td>{{ topic.topic_id }}</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 %} - <td>{{ topic.name or ""}}</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> - </tr> - {% endfor %} -</table> -{% endmacro %} |
