mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
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
|
||||
|
||||
mixin generatePersona(persona, isPrimary)
|
||||
if persona.claims.length > 0
|
||||
h2
|
||||
if persona.email
|
||||
| Identity claims (
|
||||
|
@ -39,16 +40,8 @@ mixin generatePersona(persona, isPrimary)
|
|||
.subsection
|
||||
img(src='/static/img/link.png')
|
||||
div
|
||||
if (claim.display.url)
|
||||
p Profile link:
|
||||
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
|
||||
p Claim link:
|
||||
a(rel="me" href=claim.uri aria-label="Link to claim")= claim.uri
|
||||
|
||||
block content
|
||||
if (data && 'publicKey' in data)
|
||||
|
|
Loading…
Reference in a new issue