mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Hide claims without matches
This commit is contained in:
parent
64bcc687ac
commit
84a56c7440
1 changed files with 24 additions and 23 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue