diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2016-08-05 06:35:19 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2016-08-07 18:06:32 +0100 |
commit | 55f56418df58d196daa97f3c08e3b6305e831b82 (patch) | |
tree | 43e2ff7002a89be5d3f3590ddd81f1f2f3084308 /templates | |
parent | a6e42d899cde380f513710d07787ba11dfbe229a (diff) |
Use bootstrap
Move templates and static under server/
Diffstat (limited to 'templates')
-rw-r--r-- | templates/certs.go | 71 | ||||
-rw-r--r-- | templates/token.go | 49 |
2 files changed, 0 insertions, 120 deletions
diff --git a/templates/certs.go b/templates/certs.go deleted file mode 100644 index 877a0b3..0000000 --- a/templates/certs.go +++ /dev/null @@ -1,71 +0,0 @@ -package templates - -// Certs lists all unexpired issued certificates. -const Certs = `<html> - <head> - <title>Certs</title> - <style> - <!-- - body { - font-family: sans-serif; - background-color: #edece4; - margin-top: 120px; - } - .code { - background-color: #26292B; - border: none; - color: #fff; - font-family: monospace; - font-size: 13; - font-weight: bold; - height: auto; - margin: 12px 12px 12px 12px; - padding: 24px 12px 12px 12px; - resize: none; - text-align: center; - width: 960px; - } - ::selection { - background: #32d0ff; - color: #000; - } - ::-moz-selection { - background: #32d0ff; - color: #000; - } - --> - </style> - </head> - <body> - - <form action="/admin/revoke" method="post" id="form_revoke"> - {{ .CSRF }} - <table> - <tr> - <th>ID</th> - <th>Created</th> - <th>Expires</th> - <th>Principals</th> - <th>Revoked</th> - <th>Revoke</th> - </tr> - - {{range .Certs}} - <tr> - <td>{{.KeyID}}</td> - <td>{{.CreatedAt}}</td> - <td>{{.Expires}}</td> - <td>{{.Principals}}</td> - <td>{{.Revoked}}</td> - <td> - {{if not .Revoked}} - <input type="checkbox" value="{{.KeyID}}" name="cert_id" id="cert_id" /> - {{end}} - </td> - </tr> - {{ end }} - </table> - </form> - <button type="submit" form="form_revoke" value="Submit">Submit</button> - </body> -</html>` diff --git a/templates/token.go b/templates/token.go deleted file mode 100644 index 270055b..0000000 --- a/templates/token.go +++ /dev/null @@ -1,49 +0,0 @@ -package templates - -// Token is the page users see when authenticated. -const Token = `<html> - <head> - <title>YOUR TOKEN!</title> - <style> - <!-- - body { - text-align: center; - font-family: sans-serif; - background-color: #edece4; - margin-top: 120px; - } - .code { - background-color: #26292B; - border: none; - color: #fff; - font-family: monospace; - font-size: 13; - font-weight: bold; - height: auto; - margin: 12px 12px 12px 12px; - padding: 24px 12px 12px 12px; - resize: none; - text-align: center; - width: 960px; - } - ::selection { - background: #32d0ff; - color: #000; - } - ::-moz-selection { - background: #32d0ff; - color: #000; - } - --> - </style> - </head> - <body> - <h2> - This is your token. There are many like it but this one is yours. - </h2> - <textarea class="code" readonly spellcheck="false" onclick="this.focus();this.select();">{{.Token}}</textarea> - <h2> - The token will expire in < 1 hour. - </h2> - </body> -</html>` |