]> git.ipfire.org Git - ipfire.org.git/commitdiff
people: Move ongoing calls into calls section
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 19 Oct 2018 08:55:18 +0000 (09:55 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 19 Oct 2018 08:55:18 +0000 (09:55 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/people/base.html
src/templates/people/calls.html
src/templates/people/index.html

index 342974a19cd5b6bcaa528d7853caea5864bf9178..4b84dbcdb08ce2b770d55f5fbbfb45e5e6559753 100644 (file)
                                <li class="nav-item">
                                        <a class="nav-link {% if request.path.startswith("/users/%s/calls" % current_user.uid) %}active{% end %}" href="/users/{{ current_user.uid }}/calls">
                                                {{ _("My Calls") }}
+
+                                               {% if current_user.sip_channels %}
+                                                       <span class="badge badge-primary ml-2">{{ len(current_user.sip_channels) }}</span>
+                                               {% end %}
                                        </a>
                                </li>
 
index 6fc51cf52818dce8c8beefff5f96334264187774..9f694f1edd5494241fbafd2627790e24caf88075 100644 (file)
@@ -5,6 +5,8 @@
 {% block main %}
        <h1>{{ _("Calls") }}</h1>
 
+       {% module Channels(current_user) %}
+
        <div class="card">
                <div class="card-body">
                        <nav>
index e1fa322fa28e3a54f08d6b9258309b4a1c5fca65..fd5254b8010951357adbe84487a4ac94d8259b02 100644 (file)
@@ -14,6 +14,4 @@
                        </div>
                </div>
        </section>
-
-       {% module Channels(current_user) %}
 {% end block %}