]> git.ipfire.org Git - ipfire.org.git/blame - src/templates/talk/phonebook-contact.html
base: Remove unused JS includes
[ipfire.org.git] / src / templates / talk / phonebook-contact.html
CommitLineData
66862195
MT
1{% extends "../base.html" %}
2
3{% block title %}{{ account.name }}{% end block %}
4
5{% block body %}
7fccb1a4
SH
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">
66862195 13 </div>
7fccb1a4 14 <div class="col">
66862195
MT
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() %}
7fccb1a4
SH
22 <i class="fa fa-phone" aria-hidden="true"></i>
23 <a href="/call/{{ account.sip_id }}">{{ account.sip_id }}</a>
66862195 24 {% elif account.sip_is_online() %}
7fccb1a4
SH
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>
66862195 28 {% else %}
7fccb1a4
SH
29 <i class="fa fa-phone" aria-hidden="true"></i>
30 <span class="text-danger" title="{{ _("offline") }}"></span>
31 {{ account.sip_id }}
66862195 32 {% end %}
38601116 33 {{ account.sip_id }}
66862195
MT
34 </h4>
35 </li>
36
37 <li>
38 <small>
39 <a href="sip:{{ account.sip_url }}">{{ account.sip_url }}</a>
40 </small>
41 </li>
2f51147a 42
59f2971d 43 {% if account.sip_password and (current_user == account or current_user.is_admin()) %}
2f51147a
MT
44 <li>
45 <small>
46 {{ _("Password") }}: {{ account.sip_password }}
47 </small>
48 </li>
49 {% end %}
66862195
MT
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>
7fccb1a4 60 <i class="fa fa-envelope" aria-hidden="true"></i>
66862195
MT
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>
7fccb1a4
SH
71
72 <div class="col">
66862195
MT
73 <h4>{{ _("Postal Address") }}</h4>
74 <address>
75 <strong>{{ account.name }}</strong><br>
69d27667
MT
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>
66862195
MT
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>
6ff61434
MT
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 %}
66862195
MT
96 <a href="tel:{{ number }}">{{ number }}</a>
97 </li>
98 {% end %}
99 </ul>
100 {% end %}
101 </div>
7fccb1a4 102
66862195 103 </div>
7fccb1a4
SH
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>
66862195 119 </div>
7fccb1a4
SH
120 </section>
121</div>
66862195 122{% end block %}