]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/talk/modules/call-log.html
Introduce autotools
[ipfire.org.git] / src / templates / talk / modules / call-log.html
1 <h3>{{ _("Call Log") }}</h3>
2
3 <table class="table table-sm table-hover table-striped">
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 %}
13 {% if entry.sip_code == "200" %}
14 <tr>
15 {% elif entry.caller == viewer.sip_id %}
16 <tr class="warning">
17 {% else %}
18 <tr class="info">
19 {% end %}
20 <td>{{ locale.format_date(entry.time, full_format=True, relative=False) }}</td>
21 <td>
22 {% if entry.called == viewer.sip_id %}
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 %}
30 {% elif entry.caller == viewer.sip_id %}
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>
41 {% if entry.sip_code == "200" %}
42 {{ entry.duration }}
43 {% else %}
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 %}
55 {% end %}
56 </td>
57 </tr>
58 {% end %}
59 </tbody>
60 </table>