mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
fix: make public key section optional
This commit is contained in:
parent
d74aa0854a
commit
e2ed828f9d
1 changed files with 22 additions and 21 deletions
|
@ -139,26 +139,27 @@ block content
|
||||||
|
|
||||||
section
|
section
|
||||||
h2 Profile information
|
h2 Profile information
|
||||||
h3 Public key
|
if (data && data.publicKey)
|
||||||
kx-key.kx-item(data-keydata=data.publicKey)
|
h3 Public key
|
||||||
details(aria-label="Key")
|
kx-key.kx-item(data-keydata=data.publicKey)
|
||||||
summary
|
details(aria-label="Key")
|
||||||
.info
|
summary
|
||||||
p
|
.info
|
||||||
span.title= data.identifier
|
p
|
||||||
span.subtitle-wrapper
|
span.title= data.identifier
|
||||||
| [
|
span.subtitle-wrapper
|
||||||
span.subtitle= data.publicKey.fetch.method
|
| [
|
||||||
| ]
|
span.subtitle= data.publicKey.fetch.method
|
||||||
.content
|
| ]
|
||||||
.subsection
|
.content
|
||||||
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
|
|
||||||
hr
|
|
||||||
if (data.profileType === 'openpgp')
|
|
||||||
.subsection
|
.subsection
|
||||||
img(src='/static/img/qrcode.png')
|
img(src='/static/img/link.png')
|
||||||
div
|
div
|
||||||
button(onClick=`showQR('${data.publicKey.fingerprint}', 'fingerprint')` aria-label='Show QR code for cryptographic fingerprint') Show OpenPGP fingerprint QR
|
p Key link:
|
||||||
|
a.u-key(href=data.publicKey.fetch.resolvedUrl rel="pgpkey" aria-label="Link to cryptographic key")= data.publicKey.fetch.resolvedUrl
|
||||||
|
hr
|
||||||
|
if (data.profileType === 'openpgp')
|
||||||
|
.subsection
|
||||||
|
img(src='/static/img/qrcode.png')
|
||||||
|
div
|
||||||
|
button(onClick=`showQR('${data.publicKey.fingerprint}', 'fingerprint')` aria-label='Show QR code for cryptographic fingerprint') Show OpenPGP fingerprint QR
|
Loading…
Reference in a new issue