diff --git a/pkg/keyproofs/template.go b/pkg/keyproofs/template.go index cd84563..b63d73b 100644 --- a/pkg/keyproofs/template.go +++ b/pkg/keyproofs/template.go @@ -49,7 +49,7 @@ var pageTPL = ` } .shade { background-color: {{index .Palette 3}}80; border-radius: .25rem;} .lead { padding:0; margin:0; } - + .scroll { height: 20em; overflow: scroll; } @media only screen and (max-width: 991px) { .jumbotron h1 { font-size: 2rem; } .jumbotron .lead { font-size: 1.0rem; } @@ -76,21 +76,25 @@ var pageTPL = `
-
- {{template "content" .}} +
+ {{template "content" .}} -
-
` var homeTPL = ` {{define "content"}} -
+
@@ -99,124 +103,135 @@ var homeTPL = `
-
-
-
+
+
+
+
- +
-
-
-
{{.Markdown | markDown}}
+
+
{{.Markdown | markDown}}
{{end}} ` var proofTPL = ` {{define "content"}} -
+
+ {{ with .Err }} +
+ +
- {{ with .Err }} +
+

Something went wrong...

+
{{.}}
+
+ {{else}} + {{ with .Style }}
- + avatar
+ {{end}} -
-

Something went wrong...

-
{{.}}
+ {{with .Entity}} +
+

{{.Primary.Name}}

+

{{.Fingerprint}}

+
+
+ qrcode
{{else}} - {{ with .Style }} -
- avatar -
- {{end}} - - - {{with .Entity}} -
-

{{.Primary.Name}}

-

{{.Fingerprint}}

-
-
- qrcode -
- {{else}} -
-

Loading...

-

Reading key from remote service.

-
- {{end}} - - +
+

Loading...

+

Reading key from remote service.

+
{{end}} + {{end}}
-
+
-
- {{ with .Entity }} -
-
Contact
-
- {{with .Primary}} {{.Name}} <{{.Address}}> Primary{{end}} - {{range .Emails}} {{.Name}} <{{.Address}}>{{end}} +
+
+
+ {{ with .Entity }} +
+
Contact
+
+ {{with .Primary}} {{.Name}} <{{.Address}}> Primary{{end}} + {{range .Emails}} {{.Name}} <{{.Address}}>{{end}} +
+
+
+ {{end}} + + {{if .HasProofs}} + {{with .Proofs}} +
+
Proofs
+
    + {{range .}} +
  • +
    + + + {{.Name}} + + + {{if eq .Status 0}} + Checking + {{else if eq .Status 1}} + Error + {{else if eq .Status 2}} + Invalid + {{else if eq .Status 3}} + Verified + {{end}} +
    +
    + {{if eq .Service "xmpp"}} +
    + qrcode + {{end}} +
    +
  • + {{end}} +
+
+
+ {{else}} +
+
Proofs
+
Loading...
+
+
+ {{end}} + {{end}} +
+
+
Public Key
+
+
{{.Entity.ArmorText}}
+
-
- {{end}} - - {{if .HasProofs}} - {{with .Proofs}} -
-
Proofs
-
    - {{range .}} -
  • -
    -
    - - - {{.Name}} - - - {{if eq .Status 0}} - Checking - {{else if eq .Status 1}} - Error - {{else if eq .Status 2}} - Invalid - {{else if eq .Status 3}} - Verified - {{end}} -
    -
    - {{if eq .Service "xmpp"}} - qrcode - {{end}} -
    -
    -
  • - {{end}} -
-
-
- {{else}} -
-
Proofs
-
Loading...
-
-
- {{end}} - {{end}}
+
{{end}} `