diff --git a/views/profile.pug b/views/profile.pug
index 1c141c3..335d9c7 100644
--- a/views/profile.pug
+++ b/views/profile.pug
@@ -1,54 +1,47 @@
extends templates/base.pug
mixin generatePersona(persona, isPrimary)
- h2
- if persona.email
- | Identity claims (
- span.p-email #{persona.email}
- | )
- else
- | Identity claims
- if isPrimary
- small.primary primary
- if persona.description
- span.persona__description.p-comment
-
- | #{persona.description}
- each claim in persona.claims
- if claim.matches.length > 0
- kx-claim.kx-item(data-claim=claim,data-status='running')
- details(aria-label="Claim")
- summary
- .info
- p
- span.title= claim.display.name
- span.subtitle-wrapper
- | [
- span.subtitle= claim.display.serviceproviderName
- | ]
- .icons
- .verificationStatus
- .inProgress
-
- .success
-
- .failure
-
+ if persona.claims.length > 0
+ h2
+ if persona.email
+ | Identity claims (
+ span.p-email #{persona.email}
+ | )
+ else
+ | Identity claims
+ if isPrimary
+ small.primary primary
+ if persona.description
+ span.persona__description.p-comment
+
+ | #{persona.description}
+ each claim in persona.claims
+ if claim.matches.length > 0
+ kx-claim.kx-item(data-claim=claim,data-status='running')
+ details(aria-label="Claim")
+ summary
+ .info
+ p
+ span.title= claim.display.name
+ span.subtitle-wrapper
+ | [
+ span.subtitle= claim.display.serviceproviderName
+ | ]
+ .icons
+ .verificationStatus
+ .inProgress
+
+ .success
+
+ .failure
+
- .content
- .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
+ .content
+ .subsection
+ img(src='/static/img/link.png')
+ div
+ p Claim link:
+ a(rel="me" href=claim.uri aria-label="Link to claim")= claim.uri
block content
if (data && 'publicKey' in data)