]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blame - templates/talk/modules/call-log.html
basic styling talk.ipfire.org
[people/shoehn/ipfire.org.git] / templates / talk / modules / call-log.html
CommitLineData
77431b9c
MT
1<h3>{{ _("Call Log") }}</h3>
2
729c06b8 3<table class="table table-sm table-hover table-striped">
66862195
MT
4 <thead>
5 <tr>
6 <th>{{ _("Date") }}</th>
7 <th>{{ _("Conversational Partner") }}</th>
8 <th>{{ _("Duration") }}</th>
9 </tr>
10 </thead>
11 <tbody>
12 {% for entry in calls %}
77431b9c 13 {% if entry.sip_code == "200" %}
66862195 14 <tr>
77431b9c
MT
15 {% elif entry.caller == viewer.sip_id %}
16 <tr class="warning">
17 {% else %}
18 <tr class="info">
66862195
MT
19 {% end %}
20 <td>{{ locale.format_date(entry.time, full_format=True, relative=False) }}</td>
21 <td>
77431b9c 22 {% if entry.called == viewer.sip_id %}
66862195
MT
23 <span class="glyphicon glyphicon-arrow-left text-success" title="{{ _("incoming") }}"></span>
24 {% if entry.caller_account %}
25 <a href="/phonebook/{{ entry.caller_account.uid }}">{{ entry.caller_account.name }}</a>
26 <span class="text-muted">({{ entry.caller }})</span>
27 {% else %}
28 {{ entry.caller }}
29 {% end %}
77431b9c 30 {% elif entry.caller == viewer.sip_id %}
66862195
MT
31 <span class="glyphicon glyphicon-arrow-right text-info" title="{{ _("outgoing") }}"></span>
32 {% if entry.called_account %}
33 <a href="/phonebook/{{ entry.called_account.uid }}">{{ entry.called_account.name }}</a>
34 <span class="text-muted">({{ entry.called }})</span>
35 {% else %}
36 {{ entry.called }}
37 {% end %}
38 {% end %}
39 </td>
40 <td>
77431b9c
MT
41 {% if entry.sip_code == "200" %}
42 {{ entry.duration }}
66862195 43 {% else %}
77431b9c
MT
44 {% if entry.reason == "Busy Here" %}
45 {{ _("Busy") }}
46 {% elif entry.reason in ("Cancelled", "Request Cancelled", "Request Timeout") %}
47 {% if entry.caller == viewer.sip_id %}
48 {{ _("no answer") }}
49 {% else %}
50 {{ _("missed call") }}
51 {% end %}
52 {% else %}
53 {{ entry.sip_code }} {{ entry.reason }}
54 {% end %}
66862195
MT
55 {% end %}
56 </td>
57 </tr>
58 {% end %}
59 </tbody>
60</table>