fix: missing rel=me link for ambiguous claims

This commit is contained in:
Yarmo Mackenbach 2023-09-20 08:32:50 +02:00
parent 57da895ae5
commit 1756a37ab2
No known key found for this signature in database
GPG key ID: 3C57D093219103A3

View file

@ -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)