summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-21 11:58:07 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-21 11:58:07 -0500
commit751b52c580e3db64e14b346101f991055756d46c (patch)
treebbe9edbe84dd2547114c6c583b243a2bb5eb3e7f
parent522813486373d3586658bed467b1d582aab79948 (diff)
crt.sh: color the NotBefore column green
-rw-r--r--crtsh-pem2html.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/crtsh-pem2html.go b/crtsh-pem2html.go
index dcb503a..34003f5 100644
--- a/crtsh-pem2html.go
+++ b/crtsh-pem2html.go
@@ -97,9 +97,9 @@ var tmpl = template.Must(template.New("pem2html").
</tr>
{{range $cert := .certs}}
<tr>
- <td style="background-color: {{$cert.Updated | green}}"><a target="_blank" href="{{$cert.Url}}">{{$cert.Updated | date}}</a></td>
- <td><a target="_blank" href="{{$cert.Url}}">{{$cert.X509.NotBefore | date}}</a></td>
- <td style="background-color: {{$cert.X509.NotAfter | red}}"><a target="_blank" href="{{$cert.Url}}">{{$cert.X509.NotAfter | date}}</a></td>
+ <td style="background-color: {{$cert.Updated | green}}"><a target="_blank" href="{{$cert.Url}}">{{$cert.Updated | date}}</a></td>
+ <td style="background-color: {{$cert.X509.NotBefore | green}}"><a target="_blank" href="{{$cert.Url}}">{{$cert.X509.NotBefore | date}}</a></td>
+ <td style="background-color: {{$cert.X509.NotAfter | red }}"><a target="_blank" href="{{$cert.Url}}">{{$cert.X509.NotAfter | date}}</a></td>
<td><a target="_blank" href="{{$cert.Url}}">{{$cert.X509.Subject.CommonName}}</a></td>
<td><a target="_blank" href="{{$cert.Url}}">{{$cert.X509.Issuer.Organization}}</a></td>
</tr>