summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/messages/message.html
blob: 66a6ff83026409de8fd8f5b5c15d78c1522d2136 (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
{% load storm %}
{% load gravatar %}

<div class="email_header">
	<div class="email_date inline-block pull-right">
		<span class="date">{{email.date}}</span>
		<br />
	</div>
	{% gravatar_img_for_email email.email 40 %}
	<div class="email_author inline-block">
		<span class="name"> <a href="{% url message_index mlist_fqdn=list_address, hashid=email.message_id_hash %}">{{email.sender_name}}</a> </span>
		<br />
		<span class="rank">
        {% if settings.USE_MOCKUPS == True %}
            Rank 8
        {% else %}
            &nbsp;
        {% endif %}
		</span>
	</div>
</div>

{% if unfolded %}
<div class="first_email_body">
{% else %}
<div class="email_body">
{% endif %}
{{email.content}}
</div>

{% if unfolded and email.attachments|count %}
<p class="attachments">Attachments:</p>
<ul class="attachments-list">
{% for attachment in email.attachments %}
    <li><a href="{% url message_attachment mlist_fqdn=list_address, hashid=email.message_id_hash, counter=attachment.counter, filename=attachment.name %}">{{attachment.name}}</a>
        ({{attachment.content_type}} &mdash; {{attachment.size|filesizeformat}})
    </li>
{% endfor %}
</ul>
{% endif %}

<ul class="email_info inline" messageid="{{email.message_id_hash}}">
{% if settings.USE_MOCKUPS == True %}
	<li class="neutral">
		+{{email.likes}}/-{{email.dislikes}}
	</li>
	<li class="voteup">
		<a class="youlike" href="#like">Like</a>
	</li>
	<li class="votedown">
		<a class="youdislike" href="#dislike">Dislike</a>
	</li>
{% endif %}
{% if not unfolded and email.attachments|count %}
    <li class="attachments">
        <a href="#attachments">{{ email.attachments|count }} attachment(s)</a>
        <ul class="attachments-list">
        {% for attachment in email.attachments %}
            <li><a href="{% url message_attachment mlist_fqdn=list_address, hashid=email.message_id_hash, counter=attachment.counter, filename=attachment.name %}">{{attachment.name}}</a>
                ({{attachment.content_type}} &mdash; {{attachment.size|filesizeformat}})
            </li>
        {% endfor %}
        </ul>
    </li>
{% endif %}
</ul>