From 2a22de6f49ad79fb8cf717caca24a05496b953f5 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 17 Oct 2018 01:15:06 +0100 Subject: [PATCH] people: Show SIP status in user profile Signed-off-by: Michael Tremer --- src/templates/people/user.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/templates/people/user.html b/src/templates/people/user.html index e527b784..12b6405d 100644 --- a/src/templates/people/user.html +++ b/src/templates/people/user.html @@ -46,6 +46,20 @@ {% if account.phone_numbers %}
+ {% if not account.uses_sip_forwarding() %} +
+ {{ _("SIP Status") }} + + {% if account.sip_registrations %} + + {{ _("Online") }} ({{ len(account.sip_registrations) }}) + + {% else %} + {{ _("Offline") }} + {% end %} +
+ {% end %} +
{{ _("Phone Numbers") }}
    -- 2.47.3