summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/threads/summary_thread_large.html
blob: 450278b82009e983890f9ef0baa9280941c2b11a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{% load url from future %}
{% load gravatar %}
{% load hk_generic %}
{% load storm %}

        <div class="thread{% if thread.unread %} unread{% endif %}">
            <div class="{% if thread.favorite %}saved{% else %}notsaved{% endif %}">
                <span class="thread-title">
                    {% if thread.unread %}
                        <i class="unread icon-eye-close" title="New messages in this thread"></i>
                    {% endif %}
                    <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|get_date|timesince }}</span>
            </div>
            <div class="thread-content">
                <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">
                <span class="thread-category">
                    {% include 'threads/category.html' with category=thread.category_hk category_form=thread.category_form threadid=thread.thread_id %}
                </span>
                <div class="tags">
                    {% if thread.tags|length %}
                    Tags:
                    <ul class="tags inline">
                    {% for tag in thread.tags %}
                        <li>
                            <a href="{% url 'search_tag' mlist_fqdn=mlist.name tag=tag.tag %}">{{tag.tag}}</a>
                        </li>
                    {% endfor %}
                    </ul>
                    {% endif %}
                </div>
                <span class="participant">{{ thread.participants|length }} participants</span>
                <span class="discussion">{{ thread|length }} comments</span>
                {% include "messages/like_form.html" with message_id_hash=thread.starting_email.message_id_hash object=thread %}
                <a href="{% url 'thread' threadid=thread.thread_id mlist_fqdn=mlist.name %}"
                   class="btn thread-show">Show discussion</a>
            </div>
        </div>