Maximum preview posts on edit profile screen

main
Bob Mottram 2022-11-26 11:19:30 +00:00
parent 42ae38d2d1
commit 01ca986483
28 changed files with 66 additions and 30 deletions

View File

@ -15463,7 +15463,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.cw_lists, self.server.cw_lists,
self.server.lists_enabled, self.server.lists_enabled,
self.server.system_language, self.server.system_language,
self.server.min_images_for_accounts) self.server.min_images_for_accounts,
self.server.max_recent_posts)
if msg: if msg:
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
msglen = len(msg) msglen = len(msg)

View File

@ -600,5 +600,6 @@
"Allow announces": "تعلن السماح", "Allow announces": "تعلن السماح",
"Send": "إرسال", "Send": "إرسال",
"Minimize all images": "تصغير كل الصور", "Minimize all images": "تصغير كل الصور",
"Edit post": "تعديل المنشور" "Edit post": "تعديل المنشور",
"Preview posts on profile screen": "معاينة المشاركات على شاشة الملف الشخصي"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "ঘোষণার অনুমতি দিন", "Allow announces": "ঘোষণার অনুমতি দিন",
"Send": "পাঠান", "Send": "পাঠান",
"Minimize all images": "সমস্ত ছবি ছোট করুন", "Minimize all images": "সমস্ত ছবি ছোট করুন",
"Edit post": "পোস্ট সম্পাদনা করুন" "Edit post": "পোস্ট সম্পাদনা করুন",
"Preview posts on profile screen": "প্রোফাইল স্ক্রিনে পোস্টের পূর্বরূপ দেখুন"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Permet anuncis", "Allow announces": "Permet anuncis",
"Send": "Enviar", "Send": "Enviar",
"Minimize all images": "Minimitzar totes les imatges", "Minimize all images": "Minimitzar totes les imatges",
"Edit post": "Edita la publicació" "Edit post": "Edita la publicació",
"Preview posts on profile screen": "Previsualitza les publicacions a la pantalla del perfil"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Caniatáu cyhoeddiadau", "Allow announces": "Caniatáu cyhoeddiadau",
"Send": "Anfon", "Send": "Anfon",
"Minimize all images": "Lleihau pob delwedd", "Minimize all images": "Lleihau pob delwedd",
"Edit post": "Golygu post" "Edit post": "Golygu post",
"Preview posts on profile screen": "Rhagolwg postiadau ar sgrin proffil"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Zulassen kündigt an", "Allow announces": "Zulassen kündigt an",
"Send": "Senden", "Send": "Senden",
"Minimize all images": "Alle Bilder minimieren", "Minimize all images": "Alle Bilder minimieren",
"Edit post": "Beitrag bearbeiten" "Edit post": "Beitrag bearbeiten",
"Preview posts on profile screen": "Vorschau von Beiträgen auf dem Profilbildschirm"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Allow ανακοινώνει", "Allow announces": "Allow ανακοινώνει",
"Send": "Στείλετε", "Send": "Στείλετε",
"Minimize all images": "Ελαχιστοποίηση όλων των εικόνων", "Minimize all images": "Ελαχιστοποίηση όλων των εικόνων",
"Edit post": "Επεξεργασία ανάρτησης" "Edit post": "Επεξεργασία ανάρτησης",
"Preview posts on profile screen": "Προεπισκόπηση αναρτήσεων στην οθόνη προφίλ"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Allow announces", "Allow announces": "Allow announces",
"Send": "Send", "Send": "Send",
"Minimize all images": "Minimize all images", "Minimize all images": "Minimize all images",
"Edit post": "Edit post" "Edit post": "Edit post",
"Preview posts on profile screen": "Preview posts on profile screen"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Permitir anuncios", "Allow announces": "Permitir anuncios",
"Send": "Enviar", "Send": "Enviar",
"Minimize all images": "Minimizar todas las imágenes", "Minimize all images": "Minimizar todas las imágenes",
"Edit post": "Editar post" "Edit post": "Editar post",
"Preview posts on profile screen": "Vista previa de publicaciones en la pantalla de perfil"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "اجازه اعلام می کند", "Allow announces": "اجازه اعلام می کند",
"Send": "ارسال", "Send": "ارسال",
"Minimize all images": "تمام تصاویر را به حداقل برسانید", "Minimize all images": "تمام تصاویر را به حداقل برسانید",
"Edit post": "ویرایش پست" "Edit post": "ویرایش پست",
"Preview posts on profile screen": "پیش نمایش پست ها در صفحه نمایه"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Autoriser les annonces", "Allow announces": "Autoriser les annonces",
"Send": "Envoyer", "Send": "Envoyer",
"Minimize all images": "Réduire toutes les images", "Minimize all images": "Réduire toutes les images",
"Edit post": "Modifier le message" "Edit post": "Modifier le message",
"Preview posts on profile screen": "Prévisualiser les messages sur l'écran de profil"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Ceadaigh fógraí", "Allow announces": "Ceadaigh fógraí",
"Send": "Seol", "Send": "Seol",
"Minimize all images": "Íoslaghdaigh gach íomhá", "Minimize all images": "Íoslaghdaigh gach íomhá",
"Edit post": "Cuir postáil in eagar" "Edit post": "Cuir postáil in eagar",
"Preview posts on profile screen": "Réamhamhairc postálacha ar an scáileán próifíle"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "घोषणा की अनुमति दें", "Allow announces": "घोषणा की अनुमति दें",
"Send": "भेजना", "Send": "भेजना",
"Minimize all images": "सभी छवियों को छोटा करें", "Minimize all images": "सभी छवियों को छोटा करें",
"Edit post": "संपादित पोस्ट" "Edit post": "संपादित पोस्ट",
"Preview posts on profile screen": "प्रोफ़ाइल स्क्रीन पर पोस्ट का पूर्वावलोकन करें"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Consenti annunci", "Allow announces": "Consenti annunci",
"Send": "Inviare", "Send": "Inviare",
"Minimize all images": "Riduci a icona tutte le immagini", "Minimize all images": "Riduci a icona tutte le immagini",
"Edit post": "Modifica post" "Edit post": "Modifica post",
"Preview posts on profile screen": "Visualizza l'anteprima dei post nella schermata del profilo"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "アナウンスを許可", "Allow announces": "アナウンスを許可",
"Send": "送信", "Send": "送信",
"Minimize all images": "すべての画像を最小化", "Minimize all images": "すべての画像を最小化",
"Edit post": "投稿を編集" "Edit post": "投稿を編集",
"Preview posts on profile screen": "プロフィール画面で投稿をプレビュー"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "리포스트 허용", "Allow announces": "리포스트 허용",
"Send": "보내기", "Send": "보내기",
"Minimize all images": "모든 이미지 최소화", "Minimize all images": "모든 이미지 최소화",
"Edit post": "게시물 수정" "Edit post": "게시물 수정",
"Preview posts on profile screen": "프로필 화면에서 게시물 미리보기"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Destûr dide ragihandin", "Allow announces": "Destûr dide ragihandin",
"Send": "Şandin", "Send": "Şandin",
"Minimize all images": "Hemî wêneyan kêm bikin", "Minimize all images": "Hemî wêneyan kêm bikin",
"Edit post": "Biguherîne post" "Edit post": "Biguherîne post",
"Preview posts on profile screen": "Mesajên li ser ekrana profîlê pêşdîtin"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Aankondigingen toestaan", "Allow announces": "Aankondigingen toestaan",
"Send": "Versturen", "Send": "Versturen",
"Minimize all images": "Alle afbeeldingen minimaliseren", "Minimize all images": "Alle afbeeldingen minimaliseren",
"Edit post": "Bericht bewerken" "Edit post": "Bericht bewerken",
"Preview posts on profile screen": "Bekijk berichten op het profielscherm"
} }

View File

@ -596,5 +596,6 @@
"Allow announces": "Allow announces", "Allow announces": "Allow announces",
"Send": "Send", "Send": "Send",
"Minimize all images": "Minimize all images", "Minimize all images": "Minimize all images",
"Edit post": "Edit post" "Edit post": "Edit post",
"Preview posts on profile screen": "Preview posts on profile screen"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Zezwól na ogłoszenia", "Allow announces": "Zezwól na ogłoszenia",
"Send": "Wysłać", "Send": "Wysłać",
"Minimize all images": "Zminimalizuj wszystkie obrazy", "Minimize all images": "Zminimalizuj wszystkie obrazy",
"Edit post": "Edytuj post" "Edit post": "Edytuj post",
"Preview posts on profile screen": "Podgląd postów na ekranie profilu"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Permitir anúncios", "Allow announces": "Permitir anúncios",
"Send": "Mandar", "Send": "Mandar",
"Minimize all images": "Minimize todas as imagens", "Minimize all images": "Minimize todas as imagens",
"Edit post": "Editar post" "Edit post": "Editar post",
"Preview posts on profile screen": "Visualizar postagens na tela do perfil"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Разрешить объявления", "Allow announces": "Разрешить объявления",
"Send": "Отправлять", "Send": "Отправлять",
"Minimize all images": "Свернуть все изображения", "Minimize all images": "Свернуть все изображения",
"Edit post": "Редактировать сообщение" "Edit post": "Редактировать сообщение",
"Preview posts on profile screen": "Предварительный просмотр сообщений на экране профиля"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Ruhusu matangazo", "Allow announces": "Ruhusu matangazo",
"Send": "Tuma", "Send": "Tuma",
"Minimize all images": "Punguza picha zote", "Minimize all images": "Punguza picha zote",
"Edit post": "Badilisha chapisho" "Edit post": "Badilisha chapisho",
"Preview posts on profile screen": "Hakiki machapisho kwenye skrini ya wasifu"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Duyurulara izin ver", "Allow announces": "Duyurulara izin ver",
"Send": "Göndermek", "Send": "Göndermek",
"Minimize all images": "Tüm görüntüleri simge durumuna küçült", "Minimize all images": "Tüm görüntüleri simge durumuna küçült",
"Edit post": "Gönderiyi düzenle" "Edit post": "Gönderiyi düzenle",
"Preview posts on profile screen": "Gönderileri profil ekranında önizleyin"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "Дозволити оголошення", "Allow announces": "Дозволити оголошення",
"Send": "Надіслати", "Send": "Надіслати",
"Minimize all images": "Згорнути всі зображення", "Minimize all images": "Згорнути всі зображення",
"Edit post": "Редагувати пост" "Edit post": "Редагувати пост",
"Preview posts on profile screen": "Попередній перегляд дописів на екрані профілю"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "לאָזן אַנאַונסיז", "Allow announces": "לאָזן אַנאַונסיז",
"Send": "שיקן", "Send": "שיקן",
"Minimize all images": "מינאַמייז אַלע בילדער", "Minimize all images": "מינאַמייז אַלע בילדער",
"Edit post": "רעדאַגירן פּאָסטן" "Edit post": "רעדאַגירן פּאָסטן",
"Preview posts on profile screen": "פאָרויסיקע ווייַזונג אַרטיקלען אויף פּראָפיל פאַרשטעלן"
} }

View File

@ -600,5 +600,6 @@
"Allow announces": "לאָזן אַנאַונסיז", "Allow announces": "לאָזן אַנאַונסיז",
"Send": "发送", "Send": "发送",
"Minimize all images": "最小化所有图像", "Minimize all images": "最小化所有图像",
"Edit post": "编辑帖子" "Edit post": "编辑帖子",
"Preview posts on profile screen": "在个人资料屏幕上预览帖子"
} }

View File

@ -2249,7 +2249,8 @@ def _html_edit_profile_main(base_dir: str, display_nickname: str, bio_str: str,
moved_to: str, donate_url: str, website_url: str, moved_to: str, donate_url: str, website_url: str,
gemini_link: str, blog_address: str, gemini_link: str, blog_address: str,
actor_json: {}, translate: {}, actor_json: {}, translate: {},
nickname: str, domain: str) -> str: nickname: str, domain: str,
max_recent_posts: int) -> str:
"""main info on edit profile screen """main info on edit profile screen
""" """
image_formats = get_image_formats() image_formats = get_image_formats()
@ -2333,6 +2334,13 @@ def _html_edit_profile_main(base_dir: str, display_nickname: str, bio_str: str,
edit_check_box(translate['Keep DMs during post expiry'], edit_check_box(translate['Keep DMs during post expiry'],
'expiryKeepDMs', keep_dms) 'expiryKeepDMs', keep_dms)
max_profile_posts = \
_get_max_profile_posts(base_dir, nickname, domain, max_recent_posts)
edit_profile_form += \
edit_number_field(translate['Preview posts on profile screen'],
'maxRecentProfilePosts', max_profile_posts,
1, 20, max_recent_posts)
edit_profile_form += ' </div>\n' edit_profile_form += ' </div>\n'
return edit_profile_form return edit_profile_form
@ -2387,7 +2395,8 @@ def html_edit_profile(server, translate: {},
default_reply_interval_hrs: int, default_reply_interval_hrs: int,
cw_lists: {}, lists_enabled: str, cw_lists: {}, lists_enabled: str,
system_language: str, system_language: str,
min_images_for_accounts: []) -> str: min_images_for_accounts: [],
max_recent_posts: int) -> str:
"""Shows the edit profile screen """Shows the edit profile screen
""" """
path = path.replace('/inbox', '').replace('/outbox', '') path = path.replace('/inbox', '').replace('/outbox', '')
@ -2571,7 +2580,7 @@ def html_edit_profile(server, translate: {},
moved_to, donate_url, website_url, moved_to, donate_url, website_url,
gemini_link, gemini_link,
blog_address, actor_json, translate, blog_address, actor_json, translate,
nickname, domain) nickname, domain, max_recent_posts)
# Option checkboxes # Option checkboxes
edit_profile_form += \ edit_profile_form += \