aboutsummaryrefslogtreecommitdiff
path: root/app/templates/macros/threads.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-22 12:39:35 +0000
committerGitHub <noreply@github.com>2018-12-22 12:39:35 +0000
commitf6384e2e156b190753b8ba5c57e66b6d7304b5a1 (patch)
treebd1de64bb9040f540caa45ca4c60288f32961835 /app/templates/macros/threads.html
parentc9bf7a32451069c0697c8a18dddad7aa1a2bd8af (diff)
parent09a201759bb327a889cf017d5f3c49f8258713c1 (diff)
downloadcheatdb-f6384e2e156b190753b8ba5c57e66b6d7304b5a1.tar.xz
Merge minetest/bootstrap into master
Diffstat (limited to 'app/templates/macros/threads.html')
-rw-r--r--app/templates/macros/threads.html20
1 files changed, 16 insertions, 4 deletions
diff --git a/app/templates/macros/threads.html b/app/templates/macros/threads.html
index cdb6b4f..9ce8a73 100644
--- a/app/templates/macros/threads.html
+++ b/app/templates/macros/threads.html
@@ -25,12 +25,24 @@
{% endif %}
{% endmacro %}
-{% macro render_threadlist(threads) -%}
- <ul>
+{% macro render_threadlist(threads, list_group=False) -%}
+ {% if not list_group %}<ul>{% endif %}
+ <li {% if list_group %}class="list-group-item"{% endif %}>
{% for t in threads %}
- <li>{% if t.private %}&#x1f512; {% endif %}<a href="{{ url_for('thread_page', id=t.id) }}">{{ t.title }}</a> by {{ t.author.display_name }}</li>
+ {% if list_group %}
+ <a href="{{ url_for('thread_page', id=t.id) }}">
+ {% if t.private %}&#x1f512; {% endif %}
+ {{ t.title }}
+ by {{ t.author.display_name }}
+ </a>
+ {% else %}
+ {% if t.private %}&#x1f512; {% endif %}
+ <a href="{{ url_for('thread_page', id=t.id) }}">{{ t.title }}</a>
+ by {{ t.author.display_name }}
+ {% endif %}
{% else %}
- <li><i>No threads found</i></li>
+ <i>No threads found</i>
{% endfor %}
+ </li>
</ul>
{% endmacro %}