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.lists_enabled,
self.server.system_language,
self.server.min_images_for_accounts)
self.server.min_images_for_accounts,
self.server.max_recent_posts)
if msg:
msg = msg.encode('utf-8')
msglen = len(msg)

View File

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

View File

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

View File

@ -600,5 +600,6 @@
"Allow announces": "Permet anuncis",
"Send": "Enviar",
"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",
"Send": "Anfon",
"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",
"Send": "Senden",
"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 ανακοινώνει",
"Send": "Στείλετε",
"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"
"Edit post": "Edit post",
"Preview posts on profile screen": "Preview posts on profile screen"
}

View File

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

View File

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

View File

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

View File

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

View File

@ -600,5 +600,6 @@
"Allow announces": "Destûr dide ragihandin",
"Send": "Şandin",
"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",
"Send": "Versturen",
"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",
"Send": "Send",
"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",
"Send": "Wysłać",
"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",
"Send": "Mandar",
"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": "Разрешить объявления",
"Send": "Отправлять",
"Minimize all images": "Свернуть все изображения",
"Edit post": "Редактировать сообщение"
"Edit post": "Редактировать сообщение",
"Preview posts on profile screen": "Предварительный просмотр сообщений на экране профиля"
}

View File

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

View File

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

View File

@ -600,5 +600,6 @@
"Allow announces": "לאָזן אַנאַונסיז",
"Send": "发送",
"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,
gemini_link: str, blog_address: str,
actor_json: {}, translate: {},
nickname: str, domain: str) -> str:
nickname: str, domain: str,
max_recent_posts: int) -> str:
"""main info on edit profile screen
"""
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'],
'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'
return edit_profile_form
@ -2387,7 +2395,8 @@ def html_edit_profile(server, translate: {},
default_reply_interval_hrs: int,
cw_lists: {}, lists_enabled: str,
system_language: str,
min_images_for_accounts: []) -> str:
min_images_for_accounts: [],
max_recent_posts: int) -> str:
"""Shows the edit profile screen
"""
path = path.replace('/inbox', '').replace('/outbox', '')
@ -2571,7 +2580,7 @@ def html_edit_profile(server, translate: {},
moved_to, donate_url, website_url,
gemini_link,
blog_address, actor_json, translate,
nickname, domain)
nickname, domain, max_recent_posts)
# Option checkboxes
edit_profile_form += \