]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - templates/talk/index.html
51f4cc90547b39229fd476f6aa852ade9b698a94
[people/shoehn/ipfire.org.git] / templates / talk / index.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ _("Index") }}{% end block %}
4
5 {% block body %}
6 <div class="page-header">
7 <h3>{{ _("Hello, %s!") % current_user.first_name or current_user.name }}</h3>
8 </div>
9
10 {% if favourite_contacts %}
11 <div class="row">
12 {% for contact in favourite_contacts %}
13 <div class="col-md-4">
14 <div class="thumbnail">
15 <div class="row">
16 <div class="col-md-4 hidden-sm hidden-xs">
17 {% if contact.called_account %}
18 <img src="{{ contact.called_account.gravatar_icon(106) }}"
19 alt="{{ contact.called_account.name }}">
20 {% end %}
21 </div>
22 <div class="col-md-8">
23 <div class="caption">
24 {% if contact.called_account %}
25 <h4>
26 <a href="/phonebook/{{ contact.called_account.uid }}">
27 {{ contact.called_account.name }}
28 </a>
29 </h4>
30 {% else %}
31 <h4>{{ contact.called }}</h4>
32 {% end %}
33 <p>
34 <a href="/call/{{ contact.called }}" class="btn btn-sm {% if contact.called_account and contact.called_account.sip_is_online() %}btn-success{% else %}btn-danger disabled{% end %}" role="button">
35 <span class="glyphicon glyphicon-earphone"></span> {{ _("Call") }}
36 </a>
37 </p>
38 </div>
39 </div>
40 </div>
41 </div>
42 </div>
43 {% end %}
44 </div>
45 {% end %}
46
47 {% if current_user and current_user.is_admin() %}
48 {% module TalkOngoingCalls() %}
49 {% else %}
50 {% module TalkOngoingCalls(current_user) %}
51 {% end %}
52
53 {% module TalkCallLog(current_user) %}
54 {% end block %}