]> git.ipfire.org Git - ipfire.org.git/commitdiff
people: Show SIP status as forwarded
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 17 Oct 2018 13:20:18 +0000 (14:20 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 17 Oct 2018 15:12:45 +0000 (16:12 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/people/modules/sip-status.html
src/templates/people/user.html

index abb7f8171477a1d8a7db0668b4e73925efcc0838..1b2228a662a5b1ec174fc3bd1699f90a5a1ccb09 100644 (file)
     {% else %}
         <span class="text-success">{{ _("Online") }}</span>
     {% end %}
+{% elif account.uses_sip_forwarding() %}
+    {% if account.can_be_managed_by(current_user) %}
+        <a class="text-success" href="/users/{{ account.uid }}/sip">
+            {{ _("Forwarded") }}
+        </a>
+    {% else %}
+        <span class="text-success">{{ _("Forwarded") }}</span>
+    {% end %}
 {% else %}
     {% if account.can_be_managed_by(current_user) %}
         <a class="text-danger" href="/users/{{ account.uid }}/sip">
index e71e8c703d05f9b12ebca8cbbdbbb70ed7c5eb40..a199fdc444670b183cc69bfb60d3df3b6fc1a88c 100644 (file)
                
                                                {% if account.phone_numbers %}
                                                        <div class="col-md-6 mt-5">
-                                                               {% if not account.uses_sip_forwarding() %}
-                                                                       <h6>
-                                                                               <span class="mr-2">{{ _("SIP Status") }}</span>
+                                                               <h6>
+                                                                       <span class="mr-2">{{ _("SIP Status") }}</span>
 
-                                                                               {% module SIPStatus(account) %}
-                                                                       </h6>
-                                                               {% end %}
+                                                                       {% module SIPStatus(account) %}
+                                                               </h6>
 
                                                                <h6>{{ _("Phone Numbers") }}</h6>