From 1daf59b7db8d4ebffb7cba537fcbc25a7c2a132d Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 10 Jul 2020 20:06:26 +0100 Subject: Improve thread list design further --- app/templates/macros/threads.html | 50 ++++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 17 deletions(-) diff --git a/app/templates/macros/threads.html b/app/templates/macros/threads.html index 50be4fd..eeb28cc 100644 --- a/app/templates/macros/threads.html +++ b/app/templates/macros/threads.html @@ -64,25 +64,41 @@ {% for t in threads %} - {% if not compact %} - - {{ t.created_at | datetime }} - + {% if compact %} + {% if t.private %}🔒 {% endif %} + {{ t.title }} + by {{ t.author.display_name }} + {% else %} +
+
+ + {% if not t.review %} + + {% elif t.review.recommends %} + + {% else %} + + {% endif %} + - - {% if not t.review %} - - {% elif t.review.recommends %} - - {% else %} - - {% endif %} - - {% endif %} + {% if t.private %}🔒 {% endif %} + {{ t.title }} + by {{ t.author.display_name }} +
+ +
+ {% if t.package %} + {{ _("%(title)s by %(author)s", + title="" | safe + t.package.title + "" | safe, + author=t.package.author.display_name) }} + {% endif %} +
- {% if t.private %}🔒 {% endif %} - {{ t.title }} - by {{ t.author.display_name }} +
+ {{ t.created_at | datetime }} +
+
+ {% endif %}
{% else %}

{% if list_group %}class="list-group-item"{% endif %}>No threads found

-- cgit v1.2.3