From: Michael Tremer Date: Wed, 17 Oct 2018 13:20:18 +0000 (+0100) Subject: people: Show SIP status as forwarded X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5f75710dca4ba4df0752afcb800eb49412ce14b;p=ipfire.org.git people: Show SIP status as forwarded Signed-off-by: Michael Tremer --- 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") }}