summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/threads/summary_thread.html
blob: 87a54334a46ce44c48159227df9d155e10bf7f99 (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
{% load url from future %}
{% load hk_generic %}
{% load storm %}

        <div class="thread">
            <span class="thread-id">#{{counter}}</span>
            <span class="thread-title"><a name="{{thread.thread_id}}"
                href="{% url 'thread' threadid=thread.thread_id mlist_fqdn=mlist.name %}"
                >{{ thread.subject|strip_subject:mlist }}</a></span>
            <div class="thread_stats">
                <ul class="inline-block">
                    {% if thread.category_tag %}
                    <li class="type type_{{thread.category_tag}}">
                        <a href="{% url 'search_tag' mlist_fqdn=mlist.name tag=thread.category_tag %}"
                            >{{thread.category}}</a>
                    </li>
                    {% endif %}
                    {% if thread.category %}
                    <li class="type type_{{thread.category|lower}}">
                        <a href="{% url 'search_tag' mlist_fqdn=mlist.name tag=thread.category|lower %}"
                            >{{thread.category}}</a>
                    </li>
                    {% endif %}
                    <li class="participant">
                        {{ thread.participants|length }}
                    </li>
                    <li class="discussion">
                        {{ thread.length }}
                    </li>
                    <span class="likestatus {{ thread.likestatus }}">+{{ thread.likes }}/-{{ thread.dislikes }}</span>
                </ul>
            </div>
        </div>