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