Encryption keys in separate section on profile

merge-requests/26/head
Bob Mottram 2021-12-11 12:57:05 +00:00
parent aa709f7e24
commit 9e2d949737
18 changed files with 57 additions and 26 deletions

View File

@ -500,5 +500,6 @@
"New feed URL": "موجز جديد URL",
"New link title and URL": "عنوان الارتباط الجديد وعنوان URL",
"Theme Designer": "مصمم المظهر",
"Reset": "إعادة ضبط"
"Reset": "إعادة ضبط",
"Encryption Keys": "مفاتيح التشفير"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "URL de feed nou",
"New link title and URL": "Títol i URL de l'enllaç nous",
"Theme Designer": "Dissenyador temàtic",
"Reset": "Restableix"
"Reset": "Restableix",
"Encryption Keys": "Claus de xifratge"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "URL porthiant newydd",
"New link title and URL": "Teitl dolen ac URL newydd",
"Theme Designer": "Dylunydd Thema",
"Reset": "Ail gychwyn"
"Reset": "Ail gychwyn",
"Encryption Keys": "Allweddi Amgryptio"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "Neue Feed-URL",
"New link title and URL": "Neuer Linktitel und URL",
"Theme Designer": "Themendesigner",
"Reset": "Zurücksetzen"
"Reset": "Zurücksetzen",
"Encryption Keys": "Verschlüsselungsschlüssel"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "New feed URL",
"New link title and URL": "New link title and URL",
"Theme Designer": "Theme Designer",
"Reset": "Reset"
"Reset": "Reset",
"Encryption Keys": "Encryption Keys"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "URL de nuevo feed",
"New link title and URL": "Nuevo título de enlace y URL",
"Theme Designer": "Diseñadora de temas",
"Reset": "Reiniciar"
"Reset": "Reiniciar",
"Encryption Keys": "Claves de cifrado"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "Nouvelle URL de flux",
"New link title and URL": "Nouveau titre et URL du lien",
"Theme Designer": "Concepteur de thème",
"Reset": "Réinitialiser"
"Reset": "Réinitialiser",
"Encryption Keys": "Clés de cryptage"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "URL beathaithe nua",
"New link title and URL": "Teideal nasc nua agus URL",
"Theme Designer": "Dearthóir Téama",
"Reset": "Athshocraigh"
"Reset": "Athshocraigh",
"Encryption Keys": "Eochracha Criptithe"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "नया फ़ीड URL",
"New link title and URL": "नया लिंक शीर्षक और URL",
"Theme Designer": "थीम डिजाइनर",
"Reset": "रीसेट"
"Reset": "रीसेट",
"Encryption Keys": "एन्क्रिप्शन कुंजी"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "Nuovo URL del feed",
"New link title and URL": "Nuovo titolo e URL del collegamento",
"Theme Designer": "Progettista di temi",
"Reset": "Ripristina"
"Reset": "Ripristina",
"Encryption Keys": "Chiavi di crittografia"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "新しいフィードURL",
"New link title and URL": "新しいリンクのタイトルとURL",
"Theme Designer": "テーマデザイナー",
"Reset": "リセット"
"Reset": "リセット",
"Encryption Keys": "暗号化キー"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "URL-ya feed nû",
"New link title and URL": "Sernav û URL-ya girêdana nû",
"Theme Designer": "Theme Designer",
"Reset": "Reset"
"Reset": "Reset",
"Encryption Keys": "Bişkojkên Şîfrekirinê"
}

View File

@ -496,5 +496,6 @@
"New feed URL": "New feed URL",
"New link title and URL": "New link title and URL",
"Theme Designer": "Theme Designer",
"Reset": "Reset"
"Reset": "Reset",
"Encryption Keys": "Encryption Keys"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "Novo URL de feed",
"New link title and URL": "Novo título e URL do link",
"Theme Designer": "Designer de Tema",
"Reset": "Redefinir"
"Reset": "Redefinir",
"Encryption Keys": "Chaves de criptografia"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "URL нового канала",
"New link title and URL": "Новое название ссылки и URL",
"Theme Designer": "Дизайнер тем",
"Reset": "Сброс настроек"
"Reset": "Сброс настроек",
"Encryption Keys": "Ключи шифрования"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "URL mpya ya mipasho",
"New link title and URL": "Kichwa kipya cha kiungo na URL",
"Theme Designer": "Mbuni wa Mandhari",
"Reset": "Weka upya"
"Reset": "Weka upya",
"Encryption Keys": "Vifunguo vya Usimbaji"
}

View File

@ -500,5 +500,6 @@
"New feed URL": "新供稿网址",
"New link title and URL": "新链接标题和 URL",
"Theme Designer": "主题设计师",
"Reset": "重启"
"Reset": "重启",
"Encryption Keys": "加密密钥"
}

View File

@ -1857,9 +1857,6 @@ def _htmlEditProfileContactInfo(nickname: str,
briarAddress: str,
jamiAddress: str,
cwtchAddress: str,
PGPfingerprint: str,
PGPpubKey: str,
EnigmaPubKey: str,
translate: {}) -> str:
"""Contact Information section of edit profile screen
"""
@ -1876,6 +1873,23 @@ def _htmlEditProfileContactInfo(nickname: str,
editProfileForm += editTextField('Briar', 'briarAddress', briarAddress)
editProfileForm += editTextField('Jami', 'jamiAddress', jamiAddress)
editProfileForm += editTextField('Cwtch', 'cwtchAddress', cwtchAddress)
editProfileForm += \
'<a href="/users/' + nickname + \
'/followingaccounts"><label class="labels">' + \
translate['Following'] + '</label></a><br>\n'
editProfileForm += endEditSection()
return editProfileForm
def _htmlEditProfileEncryptionKeys(PGPfingerprint: str,
PGPpubKey: str,
EnigmaPubKey: str,
translate: {}) -> str:
"""Contact Information section of edit profile screen
"""
editProfileForm = beginEditSection(translate['Encryption Keys'])
enigmaUrl = 'https://github.com/enigma-reloaded/enigma-reloaded'
editProfileForm += \
editTextField('<a href="' + enigmaUrl + '">Enigma</a>',
@ -1885,10 +1899,6 @@ def _htmlEditProfileContactInfo(nickname: str,
editProfileForm += \
editTextArea(translate['PGP'], 'pgp', PGPpubKey, 600,
'-----BEGIN PGP PUBLIC KEY BLOCK-----', False)
editProfileForm += \
'<a href="/users/' + nickname + \
'/followingaccounts"><label class="labels">' + \
translate['Following'] + '</label></a><br>\n'
editProfileForm += endEditSection()
return editProfileForm
@ -2252,8 +2262,12 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
xmppAddress, matrixAddress,
ssbAddress, toxAddress,
briarAddress, jamiAddress,
cwtchAddress, PGPfingerprint,
PGPpubKey, EnigmaPubKey, translate)
cwtchAddress, translate)
# Encryption Keys
editProfileForm += \
_htmlEditProfileEncryptionKeys(PGPfingerprint,
PGPpubKey, EnigmaPubKey, translate)
# Customize images and banners
editProfileForm += _htmlEditProfileBackground(newsInstance, translate)