Show pgp public key within dropdown to avoid taking up a large amount of screen space

main
Bob Mottram 2024-06-10 13:07:12 +01:00
parent 92d949585a
commit 646bd8507b
1 changed files with 4 additions and 2 deletions

View File

@ -1167,8 +1167,10 @@ def html_profile(signing_priv_key_pem: str,
pgp_fingerprint.replace('\n', '<br>') + '</p>\n'
if pgp_pub_key:
donate_section += \
'<p class="pgp">' + \
pgp_pub_key.replace('\n', '<br>') + '</p>\n'
'<details><summary class="cw" tabindex="10">' + \
'PGP</summary><div class="pgp">' + \
pgp_pub_key.replace('\n', '<br>') + \
'</div></details>\n'
donate_section += ' </center>\n'
donate_section += '</div>\n'