mirror of https://gitlab.com/bashrc2/epicyon
Show selectable lists
parent
6a79a6d3c7
commit
48c298f5f8
|
@ -11774,7 +11774,9 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
city,
|
||||
self.server.userAgentsBlocked,
|
||||
accessKeys,
|
||||
defaultReplyIntervalHours).encode('utf-8')
|
||||
defaultReplyIntervalHours,
|
||||
self.server.CWlists,
|
||||
self.server.listsEnabled).encode('utf-8')
|
||||
if msg:
|
||||
msglen = len(msg)
|
||||
self._set_headers('text/html', msglen,
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "أعضاء",
|
||||
"Join": "انضم",
|
||||
"Leave": "يترك",
|
||||
"System Monitor": "مراقب النظام"
|
||||
"System Monitor": "مراقب النظام",
|
||||
"Add content warnings for the following sites": "أضف تحذيرات المحتوى للمواقع التالية"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "Membres",
|
||||
"Join": "Uneix-te",
|
||||
"Leave": "Marxa",
|
||||
"System Monitor": "Monitor del sistema"
|
||||
"System Monitor": "Monitor del sistema",
|
||||
"Add content warnings for the following sites": "Afegiu advertiments de contingut per als llocs següents"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "Aelodau",
|
||||
"Join": "Ymunwch",
|
||||
"Leave": "Gadewch",
|
||||
"System Monitor": "Monitor System"
|
||||
"System Monitor": "Monitor System",
|
||||
"Add content warnings for the following sites": "Ychwanegwch rybuddion cynnwys ar gyfer y gwefannau canlynol"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "Mitglieder",
|
||||
"Join": "Verbinden",
|
||||
"Leave": "Verlassen",
|
||||
"System Monitor": "Systemmonitor"
|
||||
"System Monitor": "Systemmonitor",
|
||||
"Add content warnings for the following sites": "Inhaltswarnungen für die folgenden Websites hinzufügen"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "Members",
|
||||
"Join": "Join",
|
||||
"Leave": "Leave",
|
||||
"System Monitor": "System Monitor"
|
||||
"System Monitor": "System Monitor",
|
||||
"Add content warnings for the following sites": "Add content warnings for the following sites"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "Miembros",
|
||||
"Join": "Entrar",
|
||||
"Leave": "Dejar",
|
||||
"System Monitor": "Monitor del sistema"
|
||||
"System Monitor": "Monitor del sistema",
|
||||
"Add content warnings for the following sites": "Agregue advertencias de contenido para los siguientes sitios"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "Membres",
|
||||
"Join": "Rejoindre",
|
||||
"Leave": "Laisser",
|
||||
"System Monitor": "Moniteur système"
|
||||
"System Monitor": "Moniteur système",
|
||||
"Add content warnings for the following sites": "Ajouter des avertissements de contenu pour les sites suivants"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "Baill",
|
||||
"Join": "Bí páirteach",
|
||||
"Leave": "Fág",
|
||||
"System Monitor": "Monatóir Córais"
|
||||
"System Monitor": "Monatóir Córais",
|
||||
"Add content warnings for the following sites": "Cuir rabhaidh ábhair leis na suíomhanna seo a leanas"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "सदस्यों",
|
||||
"Join": "शामिल हों",
|
||||
"Leave": "छोड़ना",
|
||||
"System Monitor": "सिस्टम मॉनिटर"
|
||||
"System Monitor": "सिस्टम मॉनिटर",
|
||||
"Add content warnings for the following sites": "निम्नलिखित साइटों के लिए सामग्री चेतावनियाँ जोड़ें"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "Membri",
|
||||
"Join": "Aderire",
|
||||
"Leave": "Lasciare",
|
||||
"System Monitor": "Monitor di sistema"
|
||||
"System Monitor": "Monitor di sistema",
|
||||
"Add content warnings for the following sites": "Aggiungi avvisi sui contenuti per i seguenti siti"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "メンバー",
|
||||
"Join": "加入",
|
||||
"Leave": "離れる",
|
||||
"System Monitor": "システムモニター"
|
||||
"System Monitor": "システムモニター",
|
||||
"Add content warnings for the following sites": "次のサイトのコンテンツ警告を追加します"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "Endam",
|
||||
"Join": "Bihevgirêdan",
|
||||
"Leave": "Terikandin",
|
||||
"System Monitor": "System Monitor"
|
||||
"System Monitor": "System Monitor",
|
||||
"Add content warnings for the following sites": "Ji bo malperên jêrîn hişyariyên naverokê zêde bikin"
|
||||
}
|
||||
|
|
|
@ -484,5 +484,6 @@
|
|||
"Members": "Members",
|
||||
"Join": "Join",
|
||||
"Leave": "Leave",
|
||||
"System Monitor": "System Monitor"
|
||||
"System Monitor": "System Monitor",
|
||||
"Add content warnings for the following sites": "Add content warnings for the following sites"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "Membros",
|
||||
"Join": "Juntar",
|
||||
"Leave": "Sair",
|
||||
"System Monitor": "Monitor de Sistema"
|
||||
"System Monitor": "Monitor de Sistema",
|
||||
"Add content warnings for the following sites": "Adicione avisos de conteúdo para os seguintes sites"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "Члены",
|
||||
"Join": "Присоединиться",
|
||||
"Leave": "Оставлять",
|
||||
"System Monitor": "Системный монитор"
|
||||
"System Monitor": "Системный монитор",
|
||||
"Add content warnings for the following sites": "Добавить предупреждения о содержании для следующих сайтов"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "Wanachama",
|
||||
"Join": "Jiunge",
|
||||
"Leave": "Ondoka",
|
||||
"System Monitor": "Ufuatiliaji wa Mfumo"
|
||||
"System Monitor": "Ufuatiliaji wa Mfumo",
|
||||
"Add content warnings for the following sites": "Ongeza maonyo ya yaliyomo kwa wavuti zifuatazo"
|
||||
}
|
||||
|
|
|
@ -488,5 +488,6 @@
|
|||
"Members": "会员",
|
||||
"Join": "加入",
|
||||
"Leave": "离开",
|
||||
"System Monitor": "系统监视器"
|
||||
"System Monitor": "系统监视器",
|
||||
"Add content warnings for the following sites": "为以下网站添加内容警告"
|
||||
}
|
||||
|
|
|
@ -1518,7 +1518,8 @@ def _htmlEditProfileSharedItems(baseDir: str, nickname: str, domain: str,
|
|||
|
||||
def _htmlEditProfileFiltering(baseDir: str, nickname: str, domain: str,
|
||||
userAgentsBlocked: str, translate: {},
|
||||
replyIntervalHours: int) -> str:
|
||||
replyIntervalHours: int,
|
||||
CWlists: {}, listsEnabled: str) -> str:
|
||||
"""Filtering and blocking section of edit profile screen
|
||||
"""
|
||||
filterStr = ''
|
||||
|
@ -1674,6 +1675,21 @@ def _htmlEditProfileFiltering(baseDir: str, nickname: str, domain: str,
|
|||
'userAgentsBlockedStr', userAgentsBlockedStr,
|
||||
200, '', False)
|
||||
|
||||
idx = 'Add content warnings for the following sites'
|
||||
editProfileForm += \
|
||||
'<label class="labels">' + translate[idx] + ':</label>\n'
|
||||
|
||||
for listName, item in CWlists.items():
|
||||
name = listName
|
||||
variableName = 'list' + name.replace(' ', '').replace("'", '')
|
||||
if listName in listsEnabled:
|
||||
listIsEnabled = True
|
||||
else:
|
||||
listIsEnabled = False
|
||||
if translate.get(name):
|
||||
name = translate[name]
|
||||
editProfileForm += editCheckBox(name, variableName, listIsEnabled)
|
||||
|
||||
editProfileForm += endEditSection()
|
||||
return editProfileForm
|
||||
|
||||
|
@ -1956,7 +1972,8 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
|
|||
textModeBanner: str, city: str,
|
||||
userAgentsBlocked: str,
|
||||
accessKeys: {},
|
||||
defaultReplyIntervalHours: int) -> str:
|
||||
defaultReplyIntervalHours: int,
|
||||
CWlists: {}, listsEnabled: str) -> str:
|
||||
"""Shows the edit profile screen
|
||||
"""
|
||||
path = path.replace('/inbox', '').replace('/outbox', '')
|
||||
|
@ -2152,7 +2169,8 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
|
|||
editProfileForm += \
|
||||
_htmlEditProfileFiltering(baseDir, nickname, domain,
|
||||
userAgentsBlocked, translate,
|
||||
replyIntervalHours)
|
||||
replyIntervalHours,
|
||||
CWlists, listsEnabled)
|
||||
|
||||
# git projects section
|
||||
editProfileForm += \
|
||||
|
|
Loading…
Reference in New Issue