Preview button

merge-requests/30/head
Bob Mottram 2021-02-25 13:26:09 +00:00
parent 3f6beb73c2
commit f59b5f48d7
16 changed files with 38 additions and 17 deletions

View File

@ -372,5 +372,6 @@
"Broch mode": "وضع الكتيب", "Broch mode": "وضع الكتيب",
"Pixel": "بكسل", "Pixel": "بكسل",
"DM bounce": "يتم قبول الرسائل فقط من الحسابات المتبعة", "DM bounce": "يتم قبول الرسائل فقط من الحسابات المتبعة",
"Next": "التالي" "Next": "التالي",
"Preview": "معاينة"
} }

View File

@ -372,5 +372,6 @@
"Broch mode": "Mode Broch", "Broch mode": "Mode Broch",
"Pixel": "Pixel", "Pixel": "Pixel",
"DM bounce": "Els missatges només saccepten des dels comptes seguits", "DM bounce": "Els missatges només saccepten des dels comptes seguits",
"Next": "Pròxim" "Next": "Pròxim",
"Preview": "Vista prèvia"
} }

View File

@ -372,5 +372,6 @@
"Broch mode": "Modd Broch", "Broch mode": "Modd Broch",
"Pixel": "Pixel", "Pixel": "Pixel",
"DM bounce": "Dim ond o gyfrifon a ddilynir y derbynnir negeseuon", "DM bounce": "Dim ond o gyfrifon a ddilynir y derbynnir negeseuon",
"Next": "Nesaf" "Next": "Nesaf",
"Preview": "Rhagolwg"
} }

View File

@ -372,5 +372,6 @@
"Broch mode": "Broch-Modus", "Broch mode": "Broch-Modus",
"Pixel": "Pixel", "Pixel": "Pixel",
"DM bounce": "Nachrichten werden nur von folgenden Konten akzeptiert", "DM bounce": "Nachrichten werden nur von folgenden Konten akzeptiert",
"Next": "Nächster" "Next": "Nächster",
"Preview": "Vorschau"
} }

View File

@ -372,5 +372,6 @@
"Broch mode": "Broch mode", "Broch mode": "Broch mode",
"Pixel": "Pixel", "Pixel": "Pixel",
"DM bounce": "Messages are only accepted from followed accounts", "DM bounce": "Messages are only accepted from followed accounts",
"Next": "Next" "Next": "Next",
"Preview": "Preview"
} }

View File

@ -372,5 +372,6 @@
"Broch mode": "Modo broche", "Broch mode": "Modo broche",
"Pixel": "Pixel", "Pixel": "Pixel",
"DM bounce": "Solo se aceptan mensajes de cuentas seguidas", "DM bounce": "Solo se aceptan mensajes de cuentas seguidas",
"Next": "Próxima" "Next": "Próxima",
"Preview": "Avance"
} }

View File

@ -372,5 +372,6 @@
"Broch mode": "Mode Broch", "Broch mode": "Mode Broch",
"Pixel": "Pixel", "Pixel": "Pixel",
"DM bounce": "Les messages ne sont acceptés que des comptes suivis", "DM bounce": "Les messages ne sont acceptés que des comptes suivis",
"Next": "Suivante" "Next": "Suivante",
"Preview": "Aperçu"
} }

View File

@ -372,5 +372,6 @@
"Broch mode": "Modh broch", "Broch mode": "Modh broch",
"Pixel": "Pixel", "Pixel": "Pixel",
"DM bounce": "Ní ghlactar le teachtaireachtaí ach ó chuntais a leanann", "DM bounce": "Ní ghlactar le teachtaireachtaí ach ó chuntais a leanann",
"Next": "Ar Aghaidh" "Next": "Ar Aghaidh",
"Preview": "Réamhamharc"
} }

View File

@ -372,5 +372,6 @@
"Broch mode": "ब्रोच मोड", "Broch mode": "ब्रोच मोड",
"Pixel": "पिक्सेल", "Pixel": "पिक्सेल",
"DM bounce": "संदेश केवल अनुसरण किए गए खातों से स्वीकार किए जाते हैं", "DM bounce": "संदेश केवल अनुसरण किए गए खातों से स्वीकार किए जाते हैं",
"Next": "अगला" "Next": "अगला",
"Preview": "पूर्वावलोकन"
} }

View File

@ -372,5 +372,6 @@
"Broch mode": "Modalità Broch", "Broch mode": "Modalità Broch",
"Pixel": "Pixel", "Pixel": "Pixel",
"DM bounce": "I messaggi sono accettati solo dagli account seguiti", "DM bounce": "I messaggi sono accettati solo dagli account seguiti",
"Next": "Il prossimo" "Next": "Il prossimo",
"Preview": "Anteprima"
} }

View File

@ -372,5 +372,6 @@
"Broch mode": "ブロッホモード", "Broch mode": "ブロッホモード",
"Pixel": "ピクセル", "Pixel": "ピクセル",
"DM bounce": "メッセージはフォローされているアカウントからのみ受け付けられます", "DM bounce": "メッセージはフォローされているアカウントからのみ受け付けられます",
"Next": "次" "Next": "次",
"Preview": "プレビュー"
} }

View File

@ -368,5 +368,6 @@
"Broch mode": "Broch mode", "Broch mode": "Broch mode",
"Pixel": "Pixel", "Pixel": "Pixel",
"DM bounce": "Messages are only accepted from followed accounts", "DM bounce": "Messages are only accepted from followed accounts",
"Next": "Next" "Next": "Next",
"Preview": "Preview"
} }

View File

@ -372,5 +372,6 @@
"Broch mode": "Modo broch", "Broch mode": "Modo broch",
"Pixel": "Pixel", "Pixel": "Pixel",
"DM bounce": "Mensagens são aceitas apenas de contas seguidas", "DM bounce": "Mensagens são aceitas apenas de contas seguidas",
"Next": "Próxima" "Next": "Próxima",
"Preview": "Antevisão"
} }

View File

@ -372,5 +372,6 @@
"Broch mode": "Брош режим", "Broch mode": "Брош режим",
"Pixel": "Пиксель", "Pixel": "Пиксель",
"DM bounce": "Сообщения принимаются только от следующих аккаунтов", "DM bounce": "Сообщения принимаются только от следующих аккаунтов",
"Next": "Следующий" "Next": "Следующий",
"Preview": "Предварительный просмотр"
} }

View File

@ -372,5 +372,6 @@
"Broch mode": "断点模式", "Broch mode": "断点模式",
"Pixel": "像素点", "Pixel": "像素点",
"DM bounce": "仅接受来自后续帐户的邮件", "DM bounce": "仅接受来自后续帐户的邮件",
"Next": "下一个" "Next": "下一个",
"Preview": "预览"
} }

View File

@ -60,11 +60,11 @@ def htmlWelcomeProfile(baseDir: str, nickname: str, domain: str,
'/users/' + nickname + '/avatar.' + ext '/users/' + nickname + '/avatar.' + ext
imageFormats = getImageFormats() imageFormats = getImageFormats()
profileForm += '<div class="container">' + profileText + '</div>\n' profileForm += '<div class="container">' + profileText + '</div>\n'
profileForm += \ profileForm += \
'<form enctype="multipart/form-data" method="POST" ' + \ '<form enctype="multipart/form-data" method="POST" ' + \
'accept-charset="UTF-8" ' + \ 'accept-charset="UTF-8" ' + \
'action="/users/' + nickname + '/welcomeprofile">\n' 'action="/users/' + nickname + '/welcomeprofile">\n'
profileForm += '<div class="container">\n' profileForm += '<div class="container">\n'
profileForm += ' <center>\n' profileForm += ' <center>\n'
profileForm += ' <img class="welcomeavatar" src="' profileForm += ' <img class="welcomeavatar" src="'
@ -74,6 +74,12 @@ def htmlWelcomeProfile(baseDir: str, nickname: str, domain: str,
profileForm += ' </center>\n' profileForm += ' </center>\n'
profileForm += '</div>\n' profileForm += '</div>\n'
profileForm += '<center>\n'
profileForm += \
' <button type="submit" class="button" ' + \
'name="previewAvatar">' + translate['Preview'] + '</button> '
profileForm += '</center>\n'
actorFilename = baseDir + '/accounts/' + nickname + '@' + domain + '.json' actorFilename = baseDir + '/accounts/' + nickname + '@' + domain + '.json'
actorJson = loadJson(actorFilename) actorJson = loadJson(actorFilename)
displayNickname = actorJson['name'] displayNickname = actorJson['name']