hagrid-keyserver--hagrid/dist/templates/vks_publish.html.hbs

42 lines
1.5 KiB
Handlebars
Raw Normal View History

2019-02-12 13:11:03 +00:00
{{#> layout }}
2019-02-22 22:38:31 +00:00
<p>After uploading your key we will send a verification link to each email address we find inside. Clicking that link will make your key searchable by that email address.</p>
2019-02-22 13:14:29 +00:00
<div class="row">
2019-03-04 14:23:53 +00:00
<form action="/vks/v1/publish/submit" method=POST enctype=multipart/form-data>
2019-02-22 15:11:41 +00:00
<div class="upload">
<input type="hidden" name="csrf" value="{{csrf}}" />
2019-02-22 20:16:31 +00:00
<input type="file" id="keytext" name="keytext" autofocus class="fileUpload" placeholder="Your public key"/>
2019-02-22 15:11:41 +00:00
<button type="submit" class="uploadButton button smallButton">
<i class="fa fa-upload"></i>
</button>
</div>
2019-02-22 13:14:29 +00:00
</form>
</div>
2019-02-22 15:11:41 +00:00
<div class="row">
2019-02-22 22:38:31 +00:00
<p>If you're using GnuPG you can use the following snippet to export your public key. This will create a file called mykey.pgp that you can upload here.</p>
2019-02-22 20:38:38 +00:00
<pre><code>gpg --export your_address@example.org &gt; mykey.pgp</code></pre>
2019-02-22 15:11:41 +00:00
</div>
2019-02-22 15:02:22 +00:00
2019-02-22 13:14:29 +00:00
<div class="row">
2019-03-04 14:23:53 +00:00
<p>You can delete an uploaded key <a href="/vks/v1/manage">here</a>.</p>
2019-02-22 13:14:29 +00:00
</div>
<script>
var body = document.getElementsByTagName("body")[0];
body.addEventListener('dragover', function(e) {
e.preventDefault();
e.stopPropagation();
}, false);
body.addEventListener('drop', function(e) {
e.preventDefault();
e.stopPropagation();
if (e.dataTransfer) {
document.getElementById('keytext').files = e.dataTransfer.files;
}
}, false);
</script>
2019-02-12 13:11:03 +00:00
{{/layout}}