blob: 5ce9ceb9455b52048203e229c6d2d0cdcd3c4862 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{% extends "layouts/content-bootstrap.html" %}
{% load i18n %}
{% block styles %}
<style>
.modal-lg
{
width: 1100px;
}
</style>
{% endblock %}
{% block content %}
<h2>Hi {% firstof user.first_name user.username %}</h2>
<div class="row">
<div class="col-md-12">
<h4 class="modal-header">Profile information from LDAP</h4>
<dl class="dl-horizontal">
<dt>Timezone</dt>
<dd>UTC {{ profile.time_zone|default:"??" }}</dd>
</dl>
</div>
<div class="col-md-12">
<h5 class="modal-header">SSH Keys</h5>
<table class="table table-striped table-hover">
<thead>
<th>No.</th>
<th>Type</th>
<th>Name</th>
<th>View</th>
</thead>
<tbody>
{% for key in ssh_keys %}
<tr>
<td>{{ key.0 }}</td>
<td>{{ key.1 }}</td>
<td>{{ key.3 }}</td>
<td><button class="btn btn-xs btn-success" data-toggle="modal" data-target="#hashModal{{ key.0 }}" title="View SSH Key"><span class="glyphicon glyphicon-eye-open"></span></button>
<div class="modal fade" id="hashModal{{ key.0 }}" tabindex="-1" role="dialog" aria-labelledby="hashModal{{ key.0 }}Label" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="modal-title" id="hashModal{{ key.0 }}Label">SSH Key {{ key.3 }}</h3>
</div>
<div class="modal-body">
<code>{{ key.2 }}</code>
</div>
</div>
</div>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}
|