summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/thread_list.html
blob: cb95daa08a96b5e49b1249d2cf9886cc544e7591 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{% extends "base.html" %}
{% load gravatar %}
{% load hk_generic %}


{% block title %}
{{ list_title }} - {{ mlist.display_name|default:mlist.name|escapeemail }} - {{ app_name|title }}
{% endblock %}

{% block content %}

<div class="row-fluid">

{% include 'threads/month_list.html' %}

	<div id="thread-list" class="span8">

		<div class="thread-list-header page-header">
			<h1>{{ mlist.display_name|default:mlist.name|escapeemail }}
				<small>{{ list_title }}</small>
			</h1>
			<ul class="thread-list-info">
				{% if mlist.display_name %}
				<li class="list-address">
					{{ mlist.name|escapeemail }}
				</li>
				{% endif %}
				<li class="participant">
					{{ participants }} participants
				</li>
				<li class="discussion">
					{{ threads.paginator.count }} discussions
				</li>
			</ul>
		</div>

		{% for thread in threads %}
			{% include "threads/summary_thread_large.html" %}
		{% empty %}
			<p>Sorry no email threads could be found {{ no_results_text }}.</p>
		{% endfor %}

		{% include "paginator.html" with pager=threads %}

	</div>

</div>

{% endblock %}

{% block additionaljs %}
<script src="{{ STATIC_URL }}libs/jquery.expander.js"></script>
<script>
$(document).ready(function() {
    $('span.expander').expander({
        slicePoint: 500,
        userCollapseText : '\n[View Less]',
        expandText : '\n[View More]',
        beforeExpand: function() {
            $(this).removeClass("collapsed");
            $(this).addClass("expanded");
        },
        onCollapse: function() {
            $(this).removeClass("expanded");
            $(this).addClass("collapsed");
        }
    });
});
</script>
{% endblock %}

{# vim: set noet: #}