From f5f75710dca4ba4df0752afcb800eb49412ce14b Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 17 Oct 2018 14:20:18 +0100 Subject: [PATCH] people: Show SIP status as forwarded Signed-off-by: Michael Tremer --- src/templates/people/modules/sip-status.html | 8 ++++++++ src/templates/people/user.html | 10 ++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/templates/people/modules/sip-status.html b/src/templates/people/modules/sip-status.html index abb7f817..1b2228a6 100644 --- a/src/templates/people/modules/sip-status.html +++ b/src/templates/people/modules/sip-status.html @@ -14,6 +14,14 @@ {% else %} {{ _("Online") }} {% end %} +{% elif account.uses_sip_forwarding() %} + {% if account.can_be_managed_by(current_user) %} + + {{ _("Forwarded") }} + + {% else %} + {{ _("Forwarded") }} + {% end %} {% else %} {% if account.can_be_managed_by(current_user) %} diff --git a/src/templates/people/user.html b/src/templates/people/user.html index e71e8c70..a199fdc4 100644 --- a/src/templates/people/user.html +++ b/src/templates/people/user.html @@ -46,13 +46,11 @@ {% if account.phone_numbers %}
- {% if not account.uses_sip_forwarding() %} -
- {{ _("SIP Status") }} +
+ {{ _("SIP Status") }} - {% module SIPStatus(account) %} -
- {% end %} + {% module SIPStatus(account) %} +
{{ _("Phone Numbers") }}
-- 2.47.3