mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09: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,54 +1,47 @@
|
||||||
extends templates/base.pug
|
extends templates/base.pug
|
||||||
|
|
||||||
mixin generatePersona(persona, isPrimary)
|
mixin generatePersona(persona, isPrimary)
|
||||||
h2
|
if persona.claims.length > 0
|
||||||
if persona.email
|
h2
|
||||||
| Identity claims (
|
if persona.email
|
||||||
span.p-email #{persona.email}
|
| Identity claims (
|
||||||
| )
|
span.p-email #{persona.email}
|
||||||
else
|
| )
|
||||||
| Identity claims
|
else
|
||||||
if isPrimary
|
| Identity claims
|
||||||
small.primary primary
|
if isPrimary
|
||||||
if persona.description
|
small.primary primary
|
||||||
span.persona__description.p-comment
|
if persona.description
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>
|
span.persona__description.p-comment
|
||||||
| #{persona.description}
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>
|
||||||
each claim in persona.claims
|
| #{persona.description}
|
||||||
if claim.matches.length > 0
|
each claim in persona.claims
|
||||||
kx-claim.kx-item(data-claim=claim,data-status='running')
|
if claim.matches.length > 0
|
||||||
details(aria-label="Claim")
|
kx-claim.kx-item(data-claim=claim,data-status='running')
|
||||||
summary
|
details(aria-label="Claim")
|
||||||
.info
|
summary
|
||||||
p
|
.info
|
||||||
span.title= claim.display.name
|
p
|
||||||
span.subtitle-wrapper
|
span.title= claim.display.name
|
||||||
| [
|
span.subtitle-wrapper
|
||||||
span.subtitle= claim.display.serviceproviderName
|
| [
|
||||||
| ]
|
span.subtitle= claim.display.serviceproviderName
|
||||||
.icons
|
| ]
|
||||||
.verificationStatus
|
.icons
|
||||||
.inProgress
|
.verificationStatus
|
||||||
<svg style="width:24px;height:24px" viewBox="0 0 24 24"><path fill="currentColor" d="M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"></path></svg>
|
.inProgress
|
||||||
.success
|
<svg style="width:24px;height:24px" viewBox="0 0 24 24"><path fill="currentColor" d="M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"></path></svg>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><polyline points="20 6 9 17 4 12"></polyline></svg>
|
.success
|
||||||
.failure
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><polyline points="20 6 9 17 4 12"></polyline></svg>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
|
.failure
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
|
||||||
|
|
||||||
.content
|
.content
|
||||||
.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