From: Michael Tremer Date: Thu, 19 Nov 2020 16:46:59 +0000 (+0000) Subject: people: Move SIP status into phone number block X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4e3600240eb6715b64ab3062918ed5a47381f9a;p=ipfire.org.git people: Move SIP status into phone number block Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 39a36b4f..98da5371 100644 --- a/Makefile.am +++ b/Makefile.am @@ -302,8 +302,7 @@ templates_people_modules_DATA = \ src/templates/people/modules/mos.html \ src/templates/people/modules/password.html \ src/templates/people/modules/password.js \ - src/templates/people/modules/registrations.html \ - src/templates/people/modules/sip-status.html + src/templates/people/modules/registrations.html templates_people_modulesdir = $(templates_peopledir)/modules diff --git a/src/templates/people/base.html b/src/templates/people/base.html index e8f7ef9c..34b56a55 100644 --- a/src/templates/people/base.html +++ b/src/templates/people/base.html @@ -15,16 +15,6 @@ {{ account.uid }} - {% if current_user.is_staff() and account.has_sip() %} -
- {{ account.sip_id }} - - - {% module SIPStatus(account) %} - -
- {% end %} -
{% if account.has_shell() %} diff --git a/src/templates/people/modules/sip-status.html b/src/templates/people/modules/sip-status.html deleted file mode 100644 index 1b2228a6..00000000 --- a/src/templates/people/modules/sip-status.html +++ /dev/null @@ -1,33 +0,0 @@ -{% if account.sip_channels %} - {% if account.can_be_managed_by(current_user) %} - - {{ _("On The Phone") }} - - {% else %} - {{ _("On The Phone") }} - {% end %} -{% elif account.sip_registrations %} - {% if account.can_be_managed_by(current_user) %} - - {{ _("Online") }} ({{ len(account.sip_registrations) }}) - - {% 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) %} - - {{ _("Offline") }} - - {% else %} - {{ _("Offline") }} - {% end %} -{% end %} diff --git a/src/templates/people/user.html b/src/templates/people/user.html index 313994ce..8ff97370 100644 --- a/src/templates/people/user.html +++ b/src/templates/people/user.html @@ -74,9 +74,25 @@
{{ _("Phone Numbers") }}