forked from Mirrors/keyoxide-web
fix: missing rel=me link for ambiguous claims
This commit is contained in:
parent
57da895ae5
commit
1756a37ab2
1 changed files with 40 additions and 47 deletions
|
@ -1,6 +1,7 @@
|
||||||
extends templates/base.pug
|
extends templates/base.pug
|
||||||
|
|
||||||
mixin generatePersona(persona, isPrimary)
|
mixin generatePersona(persona, isPrimary)
|
||||||
|
if persona.claims.length > 0
|
||||||
h2
|
h2
|
||||||
if persona.email
|
if persona.email
|
||||||
| Identity claims (
|
| Identity claims (
|
||||||
|
@ -39,16 +40,8 @@ mixin generatePersona(persona, isPrimary)
|
||||||
.subsection
|
.subsection
|
||||||
img(src='/static/img/link.png')
|
img(src='/static/img/link.png')
|
||||||
div
|
div
|
||||||
if (claim.display.url)
|
p Claim link:
|
||||||
p Profile link:
|
a(rel="me" href=claim.uri aria-label="Link to claim")= claim.uri
|
||||||
a(rel='me' href=claim.display.url aria-label="Link to profile")= claim.display.url
|
|
||||||
else
|
|
||||||
p Profile link: not accessible from browser
|
|
||||||
if (claim.matches.length === 1 && claim.matches[0].proof.uri)
|
|
||||||
p Proof link:
|
|
||||||
a(href=claim.matches[0].proof.uri aria-label="Link to proof")= claim.matches[0].proof.uri
|
|
||||||
else
|
|
||||||
p Proof link: not accessible from browser
|
|
||||||
|
|
||||||
block content
|
block content
|
||||||
if (data && 'publicKey' in data)
|
if (data && 'publicKey' in data)
|
||||||
|
|
Loading…
Reference in a new issue