]> git.ipfire.org Git - people/jschlag/pbs.git/blob - src/templates/keys-list.html
Drop dependency on textile
[people/jschlag/pbs.git] / src / templates / keys-list.html
1 {% extends "base.html" %}
2
3 {% block title %}{{ _("Key Management") }}{% end block %}
4
5 {% block body %}
6 <ul class="breadcrumb">
7 <li>
8 <a href="/">{{ _("Home") }}</a>
9 <span class="divider">/</span>
10 </li>
11 <li class="active">
12 <a href="/keys">{{ _("Key Management") }}</a>
13 </li>
14 </ul>
15
16 <div class="page-header">
17 <h2>{{ _("Key Management") }}</h2>
18 </div>
19
20 <p>
21 {{ _("The keys are a very important component when it comes to security.") }}
22 {{ _("Each package in the Pakfire Build Service is signed to prove its authenticity.") }}
23 </p>
24
25 <hr>
26
27 <table class="table">
28 <thead>
29 <tr>
30 <th colspan="2">&nbsp;</th>
31 <th>{{ _("Fingerprint") }}</th>
32 <th>{{ _("Created") }}</th>
33 <th>{{ _("Expires") }}</th>
34 </tr>
35 </thead>
36
37 <tbody>
38 {% for key in keys %}
39 <tr>
40 <td colspan="4">
41 <strong>
42 {% for uid in key.uids %}
43 {{ uid }}<br />
44 {% end %}
45 </strong>
46 </td>
47 <td>
48 <div class="btn-group">
49 <a class="btn btn-mini" href="http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x{{ key.fingerprint }}" target="_blank">
50 <i class="icon-search"></i>
51 {{ _("Lookup") }}
52 </a>
53 <a class="btn btn-mini" href="/key/{{ key.fingerprint }}">
54 <i class="icon-download"></i>
55 {{ _("Download") }}
56 </a>
57 </div>
58
59 {% if current_user and current_user.has_perm("manage_keys") and key.can_be_deleted() %}
60 <div class="btn-group">
61 <a class="btn btn-mini btn-danger" href="/key/{{ key.fingerprint }}/delete">
62 <i class="icon-trash icon-white"></i>
63 {{ _("Remove") }}
64 </a>
65 </div>
66 {% end %}
67 </td>
68 </tr>
69
70 {% for subkey in key.subkeys %}
71 <tr>
72 <td>&nbsp;</td>
73 <td>
74 {% if subkey.algo %}
75 {{ _("Subkey") }} ({{ subkey.algo }}):
76 {% else %}
77 {{ _("Subkey") }}:
78 {% end %}
79 </td>
80 <td>{{ subkey.fingerprint }}</td>
81 <td>{{ format_date(subkey.time_created) }}</td>
82 <td>
83 {% if subkey.time_expires %}
84 {% if subkey.expired %}
85 <i class="icon-warning-sign"></i>
86 {% end %}
87
88 {{ format_date(subkey.time_expires, full_format=True) }}
89 {% else %}
90 {{ _("This key does not expire.") }}
91 {% end %}
92 </td>
93 </tr>
94 {% end %}
95
96 <tr>
97 <td colspan="5">&nbsp;</td>
98 </tr>
99 {% end %}
100 </tbody>
101 </table>
102
103 {% if current_user and current_user.has_perm("manage_keys") %}
104 <a class="btn btn-danger pull-right" href="/key/import">
105 <i class="icon-star icon-white"></i>
106 {{ _("Import new key") }}
107 </a>
108 {% end %}
109 {% end block %}