import keys.openpgp.org templates

This commit is contained in:
Kai Michaelis 2019-02-22 16:02:22 +01:00
parent c2b20daf76
commit 39d62526aa
4 changed files with 102 additions and 6455 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +1,17 @@
{{#> layout }}
<h1 class="mt-5">Hagrid Public Key Server</h1>
<p class="lead">The verifying PGP key server.</p>
<div class="row">
<form action="/pks/lookup" method=GET>
<div class="search">
<input type="hidden" id="op" name="op" value="get">
<input type="text" class="searchTerm" id="search" name="search" placeholder="Search by Email / Key Id / Fingerprint">
<button type="submit" class="searchButton button smallButton">
<i class="fa fa-search"></i>
</button>
</div>
</form>
</div>
<h2>Search for keys</h2>
<form action="/pks/lookup" method=GET>
<input type="search" id="search" name="search" placeholder="Email">
<input type="hidden" id="op" name="op" value="get">
<input type="submit" value="Search">
</form>
<h2>Upload your key</h2>
<form action="/pks/add" method=POST enctype=multipart/form-data>
<input type="file" id="keytext" name="keytext" placeholder="Your public key">
<input type="submit" value="Upload">
</form>
<div class="row">
<p>You can also <a href="/upload">upload</a> or <a href="/vks/manage">delete</a> your key.</p>
</div>
{{/layout}}

View File

@ -1,62 +1,21 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Hagrid Public Key Server</title>
</head>
<link rel="stylesheet" href="/assets/site.css" type="text/css"/>
<title>keys.openpgp.org</title>
</head>
<body lang="en">
<div class="card">
<h1><a class="brand" href="/">keys.openpgp.org</a></h1>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col"></div>
<div class="col-md-10">
{{> @partial-block }}
</div>
<div class="col"></div>
</div>
{{> @partial-block }}
</div>
<div class="text-center py-3">
Hagrid v{{ version }} build from {{ commit }}
<div class="attribution">
<p>Hagrid v{{ version }} build from {{ commit }}</p>
<p>Powered by <a href="https://sequoia-pgp.org">Sequoia-PGP</a>
<p>Background image retrieved from <a href="https://www.toptal.com/designers/subtlepatterns/subtle-grey/">Subtle Patterns</a> under CC BY-SA 3.0
</div>
</footer>
</body>
</body>
</html>

View File

@ -1,14 +1,19 @@
{{#> layout }}
<h2>Upload key to directory</h2>
<p>After uploading you key we will send a verification link to every email address we find inside. Clicking that link will make your key searchable by this email address.</p>
<div class="row">
<form action="/upload/add" method=POST enctype=multipart/form-data>
<input type="hidden" name="csrf" value="{{csrf}}" />
<input type="file" id="keytext" name="keytext" placeholder="Your public key">
<input type="submit" value="Upload">
<input type="file" id="keytext" name="keytext" class="fileUpload" />
<button type="submit" class="uploadButton button smallButton">
<i class="fa fa-upload"></i>
</button>
</form>
</div>
<p>If you're using GnuPG you can use the following snipped to export you public key. <b>Replace &lt;email&gt;</b> with you email address (User ID) of the key you want to upload. This will create a file called mykey.pgp that you can upload here.</p>
<pre><code>gpg --export &lt;email&gt; &gt; mykey.pgp</code></pre>
<div class="row">
You can delete an uploaded key <a href="/delete">here</a>.
</div>
@ -29,5 +34,4 @@
}
}, false);
</script>
{{/layout}}