-
Notifications
You must be signed in to change notification settings - Fork 4
/
message_list.html
60 lines (57 loc) · 1.36 KB
/
message_list.html
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
{% extends "geocamTalk/base.html" %}
{% block title%}GeoCam Talk Messages{% endblock %}
{% block content %}
<h1>
{% if recipient != None and author != None %}
Messages to
{% if recipient == user %}
me
{% else %}
{{recipient.full_name}}
{% endif %}
from
{% if author == user %}
me
{% else %}
{{author.full_name}}
{% endif %}
{% else %}
{% if recipient != None %}
{% if recipient == user %}
My
{% else %}
{{recipient.full_name}}'s
{% endif %}
messages
{% else %}
All Messages
{% endif %}
{% endif %}
</h1>
<div id="messages">
<ul id="message_list">
{% for m in gc_msg %}
<li id="message_{{m.pk}}">
<p id="message_{{m.pk}}_header">
On {{ m.get_date_string }}
{% if recipient %}
<a href="{% url geocamTalk.views.message_list recipient.username m.author.username %}">
{{ m.get_author_string}}</a>
{% else %}
{{ m.get_author_string}}
{% endif %}
{% if m.has_geolocation %}<a href="#" data-rel="dialog" data-transition="pop" data-inline="true" data-role="button" data-icon="geoCam-map" data-iconpos="notext">Map Info</a>{%endif%}
{% if m.has_audio %}
<a class="media" href="{{m.audio_file.url}}"></a>
{%endif%}
</p>
<p id="message_{{m.pk}}_content">
{{ m.content}}
</p>
</li>
{% endfor %}
</ul>
</div>
{% endblock %}
{% block js %}
{% endblock %}