From: Michael Tremer Date: Wed, 17 Oct 2018 00:15:06 +0000 (+0100) Subject: people: Show SIP status in user profile X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a22de6f49ad79fb8cf717caca24a05496b953f5;p=ipfire.org.git people: Show SIP status in user profile Signed-off-by: Michael Tremer --- 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") }}