summaryrefslogtreecommitdiff
path: root/tls-pem2html.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-21 15:03:07 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-21 15:03:07 -0500
commit0b05009ec37a798dd3b2e48c1240064669ba8b25 (patch)
treec0d4e452944b607d18d6872eb12937efc1641e4d /tls-pem2html.go
parent41843133f95e7ca7ec45c40b88c06e35fd7d901e (diff)
unify html
Diffstat (limited to 'tls-pem2html.go')
-rw-r--r--tls-pem2html.go59
1 files changed, 1 insertions, 58 deletions
diff --git a/tls-pem2html.go b/tls-pem2html.go
index f3581fd..8eb438c 100644
--- a/tls-pem2html.go
+++ b/tls-pem2html.go
@@ -32,62 +32,7 @@ var tmpl = template.Must(template.New("pem2html").
"green": green,
"date": fDate,
"datetime": fDateTime,
- }).Parse(`<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="utf-8">
- <title>Live Certs</title>
- <style>
- html {
- height: 100%;
- }
- body {
- font-size: 10px;
- font-family: monospace;
- height: 100%;
- margin: 0;
- display: flex;
- align-items: center;
- }
- body > * {
- margin: auto;
- }
- table {
- border-collapse: collapse;
- }
- caption p {
- margin: 0;
- }
- td, th {
- padding: 0;
- border: solid 1px black;
- white-space: nowrap;
- }
- td {
- background-color: #F3F3F3;
- }
- tr.invalid td {
- background-color: #F30000 !important;
- }
- tr:hover td, tr.invalid:hover td {
- background-color: #AAAAF3 !important;
- }
- td a {
- padding: 0.1em 0.25em;
- display: block;
- width: 100%;
- height: 100%;
- color: black;
- }
- time .time {
- display: none
- }
- </style>
- <script src="sorttable.js"></script>
- <base target="_parent" />
-</head>
-<body>
-<table class=sortable>
+ }).Parse(`<table class=sortable>
<caption>
<p>Live Certs (Updated {{.now | datetime}})</p>
</caption>
@@ -106,8 +51,6 @@ var tmpl = template.Must(template.New("pem2html").
</tr>
{{end}}
</table>
-</body>
-</html>
`))
func fDate(t time.Time) template.HTML {