]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/people/modules/channels.html
Rename accounts.ipfire.org to people.ipfire.org
[ipfire.org.git] / src / templates / people / modules / channels.html
1 {% if channels %}
2 <div class="card mb-3">
3 <div class="card-body">
4 <table class="table mb-0">
5 <tbody>
6 {% for chan in channels %}
7 <tr>
8 <td>
9 {% if chan.direction == "inbound" %}
10 <span class="fas fa-arrow-right text-danger"></span>
11
12 {% if chan.application == "conference" %}
13 CONFERENCE
14
15 {% elif chan.application == "echo" %}
16 {{ _("Echo Test") }}
17
18 {% elif chan.application == "voicemail" %}
19 {{ _("Voicemail") }}
20
21 {% elif chan.callee %}
22 {% if chan.callee %}
23 <a href="/users/{{ chan.callee.uid }}">{{ chan.callee }}</a>
24 {% else %}
25 {{ chan.callee_name }}
26 {% end %}
27
28 <span class="text-muted">({{ chan.callee_number }})</span>
29
30 {% else %}
31 {{ chan.called_number }}
32 {% end %}
33 {% elif chan.direction == "outbound" %}
34 <span class="fas fa-arrow-right text-success"></span>
35
36 {% if chan.caller %}
37 <a href="/users/{{ chan.caller.uid }}">{{ chan.caller }}</a>
38 {% else %}
39 {{ chan.caller_name }}
40 {% end %}
41
42 <span class="text-muted">({{ chan.caller_number }})</span>
43 {% end %}
44
45 <br>
46
47 <span class="text-muted small">
48 {% if chan.is_secure() %}
49 <!-- XXX icon lock with title: {{ chan.secure }} -->
50 {% end %}
51
52 {{ chan.codec }}
53 </span>
54 </td>
55
56 <td class="text-right">
57 {{ format_time(chan.duration) }}
58 </td>
59 </tr>
60 {% end %}
61 </tbody>
62 </table>
63 </div>
64 </div>
65 {% end %}