From: Michael Tremer Date: Wed, 17 Oct 2018 13:18:21 +0000 (+0100) Subject: people: Make SIP status link clickable for admins X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7894a011f836f3438727e5ab78f3c18c3352341b;p=ipfire.org.git people: Make SIP status link clickable for admins Signed-off-by: Michael Tremer --- 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 %}