extends templates/base.pug mixin generatePersona(persona, isPrimary) 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 img(src=`https://design.keyoxide.org/brands/service-providers/_/icon.svg` onerror="this.src='https://design.keyoxide.org/brands/service-providers/_/icon.svg'") p span.title= claim.display.profileName span.subtitle-wrapper | [ span.subtitle= claim.display.serviceproviderName | ] .icons .verificationStatus .inProgress .success .failure .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) script. kx = { publicKey: !{JSON.stringify(data.publicKey)} } if (data && 'errors' in data && data.errors.length > 0) section h2 Something went wrong while viewing the profile .card if data.errors.length === 1 p The following error was reported: else p The following errors were reported: ul each error in data.errors li p= error p Please see the a(href="https://docs.keyoxide.org/getting-started/something-went-wrong/") documentation | for help. else section.profile noscript p Keyoxide requires JavaScript to function. if (enable_message_encryption) dialog#dialog--encryptMessage div form(method='post') label(for="encryptionInput") Message to encrypt textarea#encryptionInput.input(name='message') input.no-margin(type='submit' name='submit' value='ENCRYPT MESSAGE') br br label(for="encryptionOutput") Encryption result textarea#encryptionOutput.output(name='message' placeholder='Waiting for input' readonly) form(method="dialog") input(type="submit" value="Close") if (enable_signature_verification) dialog#dialog--verifySignature div form(method='post') label(for="sigVerInput") Signature name textarea#sigVerOutput.output(name='message' placeholder='Waiting for input' readonly) form(method="dialog") input(type="submit" value="Close") dialog#dialog--qr div canvas#qr p a(href="" tabindex="0")#qr--altLink form(method="dialog") input(type="submit" value="Close") if (isSignature) #profileSigInput.form-wrapper.card h2 Signature profile form#formGenerateSignatureProfile(method='post') label(for="signature") Please enter the raw profile signature below and press "Generate profile". textarea#signature(name='signature')= signature input(type='submit', name='submit', value='Generate profile') unless (isSignature && !signature) .profile__header img.profile__avatar.u-logo(src=data.personas[data.primaryPersonaIndex].avatarUrl alt="avatar") p.profile__name.p-name= data.personas[data.primaryPersonaIndex].name if (data.personas[data.primaryPersonaIndex].description) p= data.personas[data.primaryPersonaIndex].description if (enable_message_encryption || enable_signature_verification) .button-wrapper if (enable_message_encryption) button(onClick="document.querySelector('#dialog--encryptMessage').showModal();") Encrypt message if (enable_signature_verification) button(onClick="document.querySelector('#dialog--verifySignature').showModal();") Verify signature .profile__claims +generatePersona(data.personas[data.primaryPersonaIndex], true && data.personas.length > 1) each persona, index in data.personas unless index == data.primaryPersonaIndex +generatePersona(persona, false) h2 Profile if data.verifiers.length > 0 button(onClick=`showQR('${data.verifiers[0].url}', 'profile_verifier_url')` aria-label='Show profile ID QR') Keyoxide profile QR button(onClick=`showQR('${data.identifier}', 'profile_identifier')` aria-label='Show profile ID QR') Profile ID QR section h2 Profile information if (data && data.publicKey) h3 Public key kx-key.kx-item(data-keydata=data.publicKey) details(aria-label="Key") summary .info p span.title= data.identifier span.subtitle-wrapper | [ span.subtitle= data.publicKey.fetch.method | ] .content .subsection img(src='/static/img/link.png') div p Key link: a.u-key(href=data.publicKey.fetch.resolvedUrl rel="pgpkey" aria-label="Link to cryptographic key")= data.publicKey.fetch.resolvedUrl