Hide claims without matches

This commit is contained in:
Yarmo Mackenbach 2021-06-03 15:23:08 +02:00
parent 64bcc687ac
commit 84a56c7440
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -6,29 +6,30 @@ mixin generateUser(user, isPrimary)
if isPrimary
small.primary primary
each claim in user.claims
kx-claim.kx-item(data-claim=claim)
details
summary
.info
p.subtitle= claim.matches[0].serviceprovider.name
p.title= claim.matches[0].profile.display
.icons
.verificationStatus(data-value='running')
.inProgress
.content
.subsection
img(src='/static/img/link.png')
div
if (claim.matches[0].profile.uri)
p Profile link:
a(rel='me' href=claim.matches[0].profile.uri)= claim.matches[0].profile.uri
else
p Profile link: not accessible from browser
if (claim.matches[0].proof.uri)
p Proof link:
a(rel='me' href=claim.matches[0].proof.uri)= claim.matches[0].proof.uri
else
p Proof link: not accessible from browser
if claim.matches.length > 0
kx-claim.kx-item(data-claim=claim)
details
summary
.info
p.subtitle= claim.matches[0].serviceprovider.name
p.title= claim.matches[0].profile.display
.icons
.verificationStatus(data-value='running')
.inProgress
.content
.subsection
img(src='/static/img/link.png')
div
if (claim.matches[0].profile.uri)
p Profile link:
a(rel='me' href=claim.matches[0].profile.uri)= claim.matches[0].profile.uri
else
p Profile link: not accessible from browser
if (claim.matches[0].proof.uri)
p Proof link:
a(rel='me' href=claim.matches[0].proof.uri)= claim.matches[0].proof.uri
else
p Proof link: not accessible from browser
block js
script(type='application/javascript' src='/static/qrcode.min.js' charset='utf-8')