]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/talk/phonebook-contact.html
Introduce autotools
[ipfire.org.git] / src / templates / talk / phonebook-contact.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ account.name }}{% end block %}
4
5 {% block body %}
6 <div class="container">
7 <section class="features-content col-12">
8 <h2 class="display-2 text-center">{{ account.name }}</h2>
9
10 <div class="row mb-6">
11 <div class="col-3">
12 <img src="{{ account.gravatar_icon(243) }}" alt="{{ account.name }}" class="img-thumbnail">
13 </div>
14 <div class="col">
15 {% if account.sip_id %}
16 <h4>{{ _("Voice over IP") }}</h4>
17
18 <ul class="list-unstyled">
19 <li>
20 <h4>
21 {% if account.uses_sip_forwarding() %}
22 <i class="fa fa-phone" aria-hidden="true"></i>
23 <a href="/call/{{ account.sip_id }}">{{ account.sip_id }}</a>
24 {% elif account.sip_is_online() %}
25 <i class="fa fa-phone" aria-hidden="true"></i>
26 <span class="text-success" title="{{ _("online") }}"></span>
27 <a href="/call/{{ account.sip_id }}">{{ account.sip_id }}</a>
28 {% else %}
29 <i class="fa fa-phone" aria-hidden="true"></i>
30 <span class="text-danger" title="{{ _("offline") }}"></span>
31 {{ account.sip_id }}
32 {% end %}
33 {{ account.sip_id }}
34 </h4>
35 </li>
36
37 <li>
38 <small>
39 <a href="sip:{{ account.sip_url }}">{{ account.sip_url }}</a>
40 </small>
41 </li>
42
43 {% if account.sip_password and (current_user == account or current_user.is_admin()) %}
44 <li>
45 <small>
46 {{ _("Password") }}: {{ account.sip_password }}
47 </small>
48 </li>
49 {% end %}
50 </ul>
51 {% end %}
52
53 {% if account.sip_id and account.email %}
54 <hr>
55 {% end %}
56
57 {% if account.email %}
58 <ul class="list-unstyled">
59 <li>
60 <i class="fa fa-envelope" aria-hidden="true"></i>
61 <span class="glyphicon glyphicon-envelope" title="{{ _("Email") }}"></span>
62 <a href="mailto:{{ account.email }}">{{ account.email }}</a>
63 </li>
64 <li>
65 <span class="glyphicon glyphicon-comment" title="{{ _("XMPP") }}"></span>
66 <a href="xmpp:{{ account.email }}">{{ account.email }}</a>
67 </li>
68 </ul>
69 {% end %}
70 </div>
71
72 <div class="col">
73 <h4>{{ _("Postal Address") }}</h4>
74 <address>
75 <strong>{{ account.name }}</strong><br>
76 <a href="https://nominatim.openstreetmap.org/search?q={{ ", ".join(account.address.splitlines()) }}" target="_blank">
77 {% for line in account.address.splitlines() %}
78 {{ line }}<br>
79 {% end %}
80 </a>
81 </address>
82
83 {% if account.telephone_numbers %}
84 <h4>{{ _("Telephone") }}</h4>
85
86 <ul class="list-unstyled">
87 {% for number in account.telephone_numbers %}
88 <li>
89 {% if number in account.mobile_telephone_numbers %}
90 <span class="fa fa-mobile" title="{{ _("Mobile phone") }}"></span>
91 {% elif number in account.home_telephone_numbers %}
92 <span class="fa fa-home" title="{{ _("Home telephone") }}"></span>
93 {% else %}
94 <span class="fa fa-phone"></span>
95 {% end %}
96 <a href="tel:{{ number }}">{{ number }}</a>
97 </li>
98 {% end %}
99 </ul>
100 {% end %}
101 </div>
102
103 </div>
104 <div class="row">
105 <div class="col">
106 {% if current_user.is_admin() and account.uses_sip_forwarding() %}
107 <div class="alert alert-info" role="alert">
108 {{ _("All calls are forwarded to:") }}
109 <a href="sip:{{ account.sip_routing_url }}">{{ account.sip_routing_url }}</a>
110 </div>
111 {% end %}
112
113 {% if current_user == account or current_user.is_admin() %}
114 {% module TalkLines(account) %}
115 {% module TalkOngoingCalls(account) %}
116 {% module TalkCallLog(account) %}
117 {% end %}
118 </div>
119 </div>
120 </section>
121 </div>
122 {% end block %}