summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/threads/summary_thread_large.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-02-07 14:52:18 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-02-07 15:00:29 +0100
commitaae9a5a1b6c75095817c0914ef7b92e63903fc2e (patch)
tree6173bf6f1f64f1296dabf792e63679e9e955b53f /hyperkitty/templates/threads/summary_thread_large.html
parent76e48cc49fc7c73ba9642129059c2e51234c3fe6 (diff)
downloadhyperkitty-aae9a5a1b6c75095817c0914ef7b92e63903fc2e.tar.gz
hyperkitty-aae9a5a1b6c75095817c0914ef7b92e63903fc2e.tar.xz
hyperkitty-aae9a5a1b6c75095817c0914ef7b92e63903fc2e.zip
Fix the tags search view (#35)
And factor some views/templates while I'm at it. And remove unused/obsolete stuff in the same move.
Diffstat (limited to 'hyperkitty/templates/threads/summary_thread_large.html')
-rw-r--r--hyperkitty/templates/threads/summary_thread_large.html67
1 files changed, 67 insertions, 0 deletions
diff --git a/hyperkitty/templates/threads/summary_thread_large.html b/hyperkitty/templates/threads/summary_thread_large.html
new file mode 100644
index 0000000..43e7d10
--- /dev/null
+++ b/hyperkitty/templates/threads/summary_thread_large.html
@@ -0,0 +1,67 @@
+{% load gravatar %}
+{% load hk_generic %}
+{% load storm %}
+
+ <div class="thread">
+ <div class="{% if thread.favorite %}saved{% else %}notsaved{% endif %}">
+ <span class="thread_title"><a name="{{thread.thread_id}}"
+ href="{% url thread threadid=thread.thread_id, mlist_fqdn=mlist.name %}"
+ >{{ thread.starting_email.subject|strip_subject:mlist }}</a></span>
+ <span class="thread_date">{{thread.date_active|timesince }}</span>
+ </div>
+ <div class="thread_content">
+ {% if thread.category_tag %}
+ <div class="inline-block type type_{{thread.category_tag}}">
+ <a href="{% url search_tag mlist_fqdn=mlist.name, tag=thread.category_tag %}"
+ >{{thread.category}}</a>
+ </div>
+ {% endif %}
+ {% if thread.category %}
+ <div class="inline-block type type_{{thread.category|lower}}">
+ <a href="{% url search_tag mlist_fqdn=mlist.name, tag=thread.category|lower %}"
+ >{{thread.category}}</a>
+ </div>
+ {% endif %}
+ <div class="gravatar">
+ {% if thread.starting_email.sender_email %}
+ {% gravatar thread.starting_email.sender_email 40 %}
+ <br />
+ {% endif %}
+ {{ thread.starting_email.sender_name|escapeemail }}
+ </div>
+ <div class="thread_email">
+ <span class="expander collapsed">
+ {{ thread.starting_email.content|urlizetrunc:76|escapeemail }}
+ </span>
+ </div>
+ </div>
+ <div class="thread_info">
+ <ul class="tags inline">
+ {% if thread.tags|length %}
+ <li>
+ Tags:
+ </li>
+ {% for tag in thread.tags %}
+ <li>
+ <a href="{% url search_tag mlist_fqdn=mlist.name, tag=tag %}">{{tag}}</a>
+ </li>
+ {% endfor %}
+ {% endif %}
+ </ul>
+ <ul class="inline-block">
+ <li class="participant">
+ {{ thread.participants|length }} participants
+ </li>
+ <li class="discussion">
+ {{ thread|length }} comments
+ </li>
+ </ul>
+ <ul class="inline-block">
+ {% include "messages/like_form.html" with message_id_hash=thread.starting_email.message_id_hash object=thread %}
+ </ul>
+ <a href="{% url thread threadid=thread.thread_id, mlist_fqdn=mlist.name %}"
+ class="btn">Show discussion</a>
+ </div>
+ </div>
+
+{# vim: set noet: #}