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