From 7894a011f836f3438727e5ab78f3c18c3352341b Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 17 Oct 2018 14:18:21 +0100 Subject: [PATCH] people: Make SIP status link clickable for admins Signed-off-by: Michael Tremer --- src/templates/people/modules/sip-status.html | 28 +++++++++++++++----- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/src/templates/people/modules/sip-status.html b/src/templates/people/modules/sip-status.html index ab4b9312..abb7f817 100644 --- a/src/templates/people/modules/sip-status.html +++ b/src/templates/people/modules/sip-status.html @@ -1,11 +1,25 @@ {% if account.sip_channels %} - - {{ _("On The Phone") }} ({{ len(account.sip_registrations) }}) - + {% if account.can_be_managed_by(current_user) %} + + {{ _("On The Phone") }} + + {% else %} + {{ _("On The Phone") }} + {% end %} {% elif account.sip_registrations %} - - {{ _("Online") }} ({{ len(account.sip_registrations) }}) - + {% if account.can_be_managed_by(current_user) %} + + {{ _("Online") }} ({{ len(account.sip_registrations) }}) + + {% else %} + {{ _("Online") }} + {% end %} {% else %} - {{ _("Offline") }} + {% if account.can_be_managed_by(current_user) %} + + {{ _("Offline") }} + + {% else %} + {{ _("Offline") }} + {% end %} {% end %} -- 2.47.3