]>
Commit | Line | Data |
---|---|---|
80e0b73e MT |
1 | {% if account.sip_registrations %} |
2 | <div class="card mb-3"> | |
3 | <div class="card-body"> | |
4 | <h6 class="card-title">{{ _("Active Registrations") }}</h6> | |
5 | ||
6 | <table class="table table-sm mb-0"> | |
7 | <tbody> | |
8 | {% for reg in account.sip_registrations %} | |
9 | <tr> | |
10 | <td>{{ reg.user_agent }}</td> | |
11 | <td>{{ reg.protocol }}/{{ reg.network_ip }}:{{ reg.network_port }}</td> | |
12 | <td class="text-right"> | |
13 | {% if reg.is_reachable() and reg.latency %} | |
14 | {{ "%.2f ms" % reg.latency }} | |
15 | {% else %} | |
16 | <span class="text-muted">{{ _("N/A") }}</span> | |
17 | {% end %} | |
18 | </td> | |
19 | </tr> | |
917434b8 | 20 | {% end %} |
80e0b73e MT |
21 | </tbody> |
22 | </table> | |
23 | </div> | |
24 | </div> | |
25 | {% end %} |