]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blame - templates/talk/phonebook-contact.html
talk: Show different types of phone numbers
[people/shoehn/ipfire.org.git] / templates / talk / phonebook-contact.html
CommitLineData
66862195
MT
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>
6ff61434 25 <a href="/call/{{ account.sip_id }}">{{ account.sip_id }}</a>
66862195
MT
26 {% elif account.sip_is_online() %}
27 <span class="glyphicon glyphicon-earphone text-success" title="{{ _("online") }}"></span>
28 <a href="/call/{{ account.sip_id }}">{{ account.sip_id }}</a>
29 {% else %}
30 <span class="glyphicon glyphicon-earphone text-danger" title="{{ _("offline") }}"></span>
31 {{ account.sip_id }}
32 {% end %}
33 </h4>
34 </li>
35
36 <li>
37 <small>
38 <a href="sip:{{ account.sip_url }}">{{ account.sip_url }}</a>
39 </small>
40 </li>
2f51147a
MT
41
42 {% if current_user == account or current_user.is_admin() %}
43 <li>
44 <small>
45 {{ _("Password") }}: {{ account.sip_password }}
46 </small>
47 </li>
48 {% end %}
66862195
MT
49 </ul>
50 {% end %}
51
52 {% if account.sip_id and account.email %}
53 <hr>
54 {% end %}
55
56 {% if account.email %}
57 <ul class="list-unstyled">
58 <li>
59 <span class="glyphicon glyphicon-envelope" title="{{ _("Email") }}"></span>
60 <a href="mailto:{{ account.email }}">{{ account.email }}</a>
61 </li>
62 <li>
63 <span class="glyphicon glyphicon-comment" title="{{ _("XMPP") }}"></span>
64 <a href="xmpp:{{ account.email }}">{{ account.email }}</a>
65 </li>
66 </ul>
67 {% end %}
68 </div>
69 <div class="col-md-3">
70 <h4>{{ _("Postal Address") }}</h4>
71 <address>
72 <strong>{{ account.name }}</strong><br>
69d27667
MT
73 <a href="https://nominatim.openstreetmap.org/search?q={{ ", ".join(account.address.splitlines()) }}" target="_blank">
74 {% for line in account.address.splitlines() %}
75 {{ line }}<br>
76 {% end %}
77 </a>
66862195
MT
78 </address>
79
80 {% if account.telephone_numbers %}
81 <h4>{{ _("Telephone") }}</h4>
82
83 <ul class="list-unstyled">
84 {% for number in account.telephone_numbers %}
85 <li>
6ff61434
MT
86 {% if number in account.mobile_telephone_numbers %}
87 <span class="fa fa-mobile" title="{{ _("Mobile phone") }}"></span>
88 {% elif number in account.home_telephone_numbers %}
89 <span class="fa fa-home" title="{{ _("Home telephone") }}"></span>
90 {% else %}
91 <span class="fa fa-phone"></span>
92 {% end %}
66862195
MT
93 <a href="tel:{{ number }}">{{ number }}</a>
94 </li>
95 {% end %}
96 </ul>
97 {% end %}
98 </div>
99 </div>
100 </div>
101
102 {% if current_user.is_admin() and account.uses_sip_forwarding() %}
103 <div class="alert alert-info" role="alert">
104 {{ _("All calls are forwarded to:") }}
105 <a href="sip:{{ account.sip_routing_url }}">{{ account.sip_routing_url }}</a>
106 </div>
107 {% end %}
108
77431b9c
MT
109 {% if current_user == account or current_user.is_admin() %}
110 {% module TalkLines(account) %}
111 {% module TalkOngoingCalls(account) %}
112 {% module TalkCallLog(account) %}
66862195
MT
113 {% end %}
114{% end block %}