]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - templates/talk/modules/lines.html
talk: Update for Kamailio
[people/shoehn/ipfire.org.git] / templates / talk / modules / lines.html
diff --git a/templates/talk/modules/lines.html b/templates/talk/modules/lines.html
new file mode 100644 (file)
index 0000000..722ee13
--- /dev/null
@@ -0,0 +1,40 @@
+<h3>{{ _("Lines") }}</h3>
+
+<table class="table table-condensed table-hover table-striped">
+       <thead>
+               <tr>
+                       {% if show_account %}
+                               <th>{{ _("Account") }}</th>
+                       {% end %}
+                       <th>{{ _("Expires") }}</th>
+                       <th>{{ _("Location") }}</th>
+                       <th>{{ _("User Agent") }}</th>
+               </tr>
+       </thead>
+       <tbody>
+               {% for line in lines %}
+                       <tr>
+                               {% if show_account %}
+                                       <td>
+                                               {% if line.account %}
+                                                       <a href="/phonebook/{{ line.account.uid }}">{{ line.account.name }}</a>
+                                                               <span class="text-muted">({{ line.account.sip_id }})</span>
+                                                       </a>
+                                               {% else %}
+                                                       {{ line.username }}@{{ line.domain }}
+                                               {% end %}
+                                       </td>
+                               {% end %}
+
+                               <td>{{ locale.format_date(line.expires) }}</td>
+                               <td>
+                                       {% if line.tls_enabled %}
+                                               <span class="glyphicon glyphicon-lock" title="{{ _("TLS") }}"></span>
+                                       {% end %}
+                                       {{ line.location }}
+                               </td>
+                               <td>{{ line.user_agent }}</td>
+                       </tr>
+               {% end %}
+       </tbody>
+</table>