]>
Commit | Line | Data |
---|---|---|
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> | |
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> | |
2f51147a MT |
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 %} | |
66862195 MT |
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 | {% for line in account.address.splitlines() %} | |
73 | {{ line }}<br> | |
74 | {% end %} | |
75 | </address> | |
76 | ||
77 | {% if account.telephone_numbers %} | |
78 | <h4>{{ _("Telephone") }}</h4> | |
79 | ||
80 | <ul class="list-unstyled"> | |
81 | {% for number in account.telephone_numbers %} | |
82 | <li> | |
83 | <a href="tel:{{ number }}">{{ number }}</a> | |
84 | </li> | |
85 | {% end %} | |
86 | </ul> | |
87 | {% end %} | |
88 | </div> | |
89 | </div> | |
90 | </div> | |
91 | ||
92 | {% if current_user.is_admin() and account.uses_sip_forwarding() %} | |
93 | <div class="alert alert-info" role="alert"> | |
94 | {{ _("All calls are forwarded to:") }} | |
95 | <a href="sip:{{ account.sip_routing_url }}">{{ account.sip_routing_url }}</a> | |
96 | </div> | |
97 | {% end %} | |
98 | ||
77431b9c MT |
99 | {% if current_user == account or current_user.is_admin() %} |
100 | {% module TalkLines(account) %} | |
101 | {% module TalkOngoingCalls(account) %} | |
102 | {% module TalkCallLog(account) %} | |
66862195 MT |
103 | {% end %} |
104 | {% end block %} |