]> git.ipfire.org Git - ipfire.org.git/blob - templates/talk/phonebook-contact.html
Huge update for fireinfo, introducting talk and nopaste
[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 </ul>
41 {% end %}
42
43 {% if account.sip_id and account.email %}
44 <hr>
45 {% end %}
46
47 {% if account.email %}
48 <ul class="list-unstyled">
49 <li>
50 <span class="glyphicon glyphicon-envelope" title="{{ _("Email") }}"></span>
51 <a href="mailto:{{ account.email }}">{{ account.email }}</a>
52 </li>
53 <li>
54 <span class="glyphicon glyphicon-comment" title="{{ _("XMPP") }}"></span>
55 <a href="xmpp:{{ account.email }}">{{ account.email }}</a>
56 </li>
57 </ul>
58 {% end %}
59 </div>
60 <div class="col-md-3">
61 <h4>{{ _("Postal Address") }}</h4>
62 <address>
63 <strong>{{ account.name }}</strong><br>
64 {% for line in account.address.splitlines() %}
65 {{ line }}<br>
66 {% end %}
67 </address>
68
69 {% if account.telephone_numbers %}
70 <h4>{{ _("Telephone") }}</h4>
71
72 <ul class="list-unstyled">
73 {% for number in account.telephone_numbers %}
74 <li>
75 <a href="tel:{{ number }}">{{ number }}</a>
76 </li>
77 {% end %}
78 </ul>
79 {% end %}
80 </div>
81 </div>
82 </div>
83
84 {% if current_user.is_admin() and account.uses_sip_forwarding() %}
85 <div class="alert alert-info" role="alert">
86 {{ _("All calls are forwarded to:") }}
87 <a href="sip:{{ account.sip_routing_url }}">{{ account.sip_routing_url }}</a>
88 </div>
89 {% end %}
90
91 {% if lines %}
92 <h3>{{ _("Lines") }}</h3>
93
94 <table class="table table-condensed table-hover table-striped">
95 <thead>
96 <tr>
97 <th>{{ _("Expires") }}</th>
98 <th>{{ _("Location") }}</th>
99 <th>{{ _("User Agent") }}</th>
100 </tr>
101 </thead>
102 <tbody>
103 {% for line in lines %}
104 <tr>
105 <td>{{ locale.format_date(line.expires) }}</td>
106 <td>
107 {% if line.tls_enabled %}
108 <span class="glyphicon glyphicon-lock" title="{{ _("TLS") }}"></span>
109 {% end %}
110 {{ line.location }}
111 </td>
112 <td>{{ line.user_agent }}</td>
113 </tr>
114 {% end %}
115 </tbody>
116 </table>
117 {% end %}
118
119 {% if ongoing_calls %}
120 <h3>{{ _("Ongoing Calls") }}</h3>
121 {% module TalkOngoingCalls(ongoing_calls) %}
122 {% end %}
123
124 {% if call_log %}
125 <h3>{{ _("Call Log") }}</h3>
126 {% module TalkCallLog(call_log) %}
127 {% end %}
128 {% end block %}