]> git.siccegge.de Git - ksp-webtool.git/blob - templates/index.html
0b46a413be73b310a6d03c380a35f71f0419a8b1
[ksp-webtool.git] / templates / index.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
5 <title></title>
6 </head>
7 <body>
8 <h1>Key listing</h1>
9 <p><a href={{ url_for('download') }}>Download Keyring</a></p>
10 <table>
11 {% for entry in data %}
12 <tr>
13 <th colspan="2" style="text-align:left;">{{data[entry][1][0].data}} {{data[entry][0].fingerprint}}</th>
14 </tr>
15 <tr>
16 <td rowspan="{{1 + data[entry][1]|length}}">
17 {% if data[entry][2][0] %}
18 <img height="100" src="data:image/{{data[entry][2][0].image_format}};base64,{{data[entry][2][0].image_data|base64}}"/>
19 {% endif %}
20 </td>
21 <td>
22 {{data[entry][0].modulus|log2}}
23 {{data[entry][0].pub_algorithm_type}}
24 {{data[entry][0].creation_time}}
25 (expires {{data[entry][0].expiration_time}})
26 </td>
27 </tr>
28 {% for uid in data[entry][1] %}
29 <tr>
30 <td>{{uid.data.decode('utf-8')}}</td>
31 </tr>
32 {% endfor %}
33 {% endfor %}
34 </table>
35
36 <h3>Submit Key</h3>
37 <form method="POST" action="/pks/add">
38 <textarea name="keytext" cols="80" rows="30"></textarea>
39 <input type="submit" value="Submit" />
40 </form>
41 </body>
42 </html>