]> git.ipfire.org Git - ipfire.org.git/blob - templates/talk/modules/ongoing-calls.html
talk: Allow hanging up channels from webapp
[ipfire.org.git] / templates / talk / modules / ongoing-calls.html
1 {% if channels %}
2 <h3>{{ _("Ongoing Calls") }}</h3>
3
4 <table class="table table-hover table-striped">
5 <thead>
6 <tr>
7 <th>{{ _("Caller") }}</th>
8 <th></th>
9 <th>{{ _("Called") }}</th>
10 <th>{{ _("Codec") }}</th>
11 <th class="ar">{{ _("Duration") }}</th>
12 </tr>
13 </thead>
14 <tbody>
15 {% for c in channels %}
16 <tr>
17 <td>
18 {% module TalkContact(c.caller, name=c.caller_name) %}
19 </td>
20
21 <td>
22 <span class="glyphicon glyphicon-arrow-right text-success"></span>
23 </td>
24
25 <td>
26 {% module TalkContact(c.callee, application=c.application) %}
27 </td>
28
29 <td>
30 {{ c.format }}
31 </td>
32
33 <td class="ar">{{ format_time(c.duration) }}</td>
34
35 <td class="ar">
36 <a class="btn btn-xs btn-danger" title="{{ _("Hangup") }}" href="/hangup/{{ c.id }}">
37 <i class="fa fa-times"></i>
38 </a>
39 </td>
40 </tr>
41 {% end %}
42 </tbody>
43 </table>
44 {% end %}