Simplified vcard download link

main
Bob Mottram 2024-08-14 11:58:52 +01:00
parent f4490f67a4
commit 17cc5f9fda
1 changed files with 8 additions and 3 deletions

View File

@ -783,13 +783,18 @@ def _get_profile_header(base_dir: str, http_prefix: str, nickname: str,
translate)
# show vcard download link
# html_str += \
# ' <a href="/users/' + nickname + '.vcf" ' + \
# 'type="text/vcard" ' + \
# 'download="contact_' + nickname + '@' + domain_full + \
# '.vcf" tabindex="1" class="imageAnchor">' + \
# '<img class="vcard" src="/icons/vcard.png" ' + \
# 'title="vCard" alt="vCard" /></a>\n'
html_str += \
' <a href="/users/' + nickname + '.vcf" ' + \
'type="text/vcard" ' + \
'download="contact_' + nickname + '@' + domain_full + \
'.vcf" tabindex="1" class="imageAnchor">' + \
'<img class="vcard" src="/icons/vcard.png" ' + \
'title="vCard" alt="vCard" /></a>\n'
'.vcf" tabindex="1" class="imageAnchor">VCF</a>\n'
html_str += \
' </figcaption>\n' + \