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
{% load gravatar superarchives i18n %}
<li>
{% spaceless %}
<div class="email-message" id="msg-{% firstof email.id 'reply' %}">
<div class="panel panel-default">
<div class="panel-heading clearfix">
<div class="col-lg-6 col-md-6 col-sm-6">
{% if userprofile.get_absolute_url %}
<a href="{{ userprofile.get_absolute_url }}">
{% endif %}
{% gravatar emailaddress 34 %}
<strong class="user-fullname">{{ fullname }}</strong>
{% if userprofile.get_absolute_url %}
</a>
{% endif %}
</div>
{% if not reply %}
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="pull-right text-right">
<span class="date">
{{ email.received_time|date:'DATETIME_FORMAT' }}
</span>
<div class="btn-group">
<button class="btn btn-default vote-count disabled">
{{ email.votes_count }}
</button>
{% if user in email.vote_list %}
<button class="btn btn-success vote" data-loading-text="...">
{% else %}
<button class="btn btn-default vote" data-loading-text="...">
{% endif %}
<span class="glyphicon glyphicon-thumbs-up"></span>
</button>
</div>
{% if user.is_active %}
<button class="btn btn-default reply" title="{% trans 'Reply' %}">
<span class="glyphicon glyphicon-share"></span>
</button>
{% endif %}
</div>
</div>
{% endif %}
</div>
<div class="panel-collapse in">
<div class="panel-body">
{% if not reply %}
{% display_message email %}
{% else %}
<form method="POST">
{% csrf_token %}
<p>
<textarea name="emailbody" placeholder="{% trans 'Send a message' %}" rows="5" class="form-control"></textarea>
</p>
<div class="col-lg-9 col-md-8 col-sm-8 col-xs-7">
<p class="quiet">{% trans "After sending a message it will take few minutes before it shows up in here. Why don't you grab a coffee?" %}</p>
</div>
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-5 text-right">
<button class="btn btn-success" type="submit">{% trans 'Send' %}</button>
</div>
</form>
{% endif %}
</div>
</div>
</div>
</div>
{% endspaceless %}
</li>