Define moderation policy

merge-requests/8/head
Bob Mottram 2020-08-24 11:30:33 +01:00
parent a4db99566b
commit 01ecf7d1a3
16 changed files with 41 additions and 16 deletions

View File

@ -279,5 +279,6 @@
"Banner image": "صورة بانر", "Banner image": "صورة بانر",
"Maximum attendees": "الحد الأقصى للحضور", "Maximum attendees": "الحد الأقصى للحضور",
"Ticket URL": "عنوان URL للتذكرة", "Ticket URL": "عنوان URL للتذكرة",
"Create a new event": "أنشئ حدثًا جديدًا" "Create a new event": "أنشئ حدثًا جديدًا",
"Moderation policy or code of conduct": "سياسة الوسطية أو قواعد السلوك"
} }

View File

@ -279,5 +279,6 @@
"Banner image": "Imatge de pancarta", "Banner image": "Imatge de pancarta",
"Maximum attendees": "Màxim dassistents", "Maximum attendees": "Màxim dassistents",
"Ticket URL": "URL de l'entrada", "Ticket URL": "URL de l'entrada",
"Create a new event": "Creeu un esdeveniment nou" "Create a new event": "Creeu un esdeveniment nou",
"Moderation policy or code of conduct": "Política de moderació o codi de conducta"
} }

View File

@ -279,5 +279,6 @@
"Banner image": "Delwedd baner", "Banner image": "Delwedd baner",
"Maximum attendees": "Uchafswm mynychwyr", "Maximum attendees": "Uchafswm mynychwyr",
"Ticket URL": "URL y tocyn", "Ticket URL": "URL y tocyn",
"Create a new event": "Creu digwyddiad newydd" "Create a new event": "Creu digwyddiad newydd",
"Moderation policy or code of conduct": "Polisi cymedroli neu god ymddygiad"
} }

View File

@ -279,5 +279,6 @@
"Banner image": "Bannerbild", "Banner image": "Bannerbild",
"Maximum attendees": "Maximale Teilnehmerzahl", "Maximum attendees": "Maximale Teilnehmerzahl",
"Ticket URL": "Ticket URL", "Ticket URL": "Ticket URL",
"Create a new event": "Erstellen Sie ein neues Ereignis" "Create a new event": "Erstellen Sie ein neues Ereignis",
"Moderation policy or code of conduct": "Moderationsrichtlinie oder Verhaltenskodex"
} }

View File

@ -279,5 +279,6 @@
"Banner image": "Banner image", "Banner image": "Banner image",
"Maximum attendees": "Maximum attendees", "Maximum attendees": "Maximum attendees",
"Ticket URL": "Ticket URL", "Ticket URL": "Ticket URL",
"Create a new event": "Create a new event" "Create a new event": "Create a new event",
"Moderation policy or code of conduct": "Moderation policy or code of conduct"
} }

View File

@ -279,5 +279,6 @@
"Banner image": "Imagen de banner", "Banner image": "Imagen de banner",
"Maximum attendees": "Asistentes máximos", "Maximum attendees": "Asistentes máximos",
"Ticket URL": "URL del ticket", "Ticket URL": "URL del ticket",
"Create a new event": "Crea un nuevo evento" "Create a new event": "Crea un nuevo evento",
"Moderation policy or code of conduct": "Política de moderación o código de conducta"
} }

View File

@ -279,5 +279,6 @@
"Banner image": "Image de bannière", "Banner image": "Image de bannière",
"Maximum attendees": "Nombre maximum de participants", "Maximum attendees": "Nombre maximum de participants",
"Ticket URL": "URL du ticket", "Ticket URL": "URL du ticket",
"Create a new event": "Créer un nouvel événement" "Create a new event": "Créer un nouvel événement",
"Moderation policy or code of conduct": "Politique de modération ou code de conduite"
} }

View File

@ -279,5 +279,6 @@
"Banner image": "Íomhá meirge", "Banner image": "Íomhá meirge",
"Maximum attendees": "Uasmhéid freastail", "Maximum attendees": "Uasmhéid freastail",
"Ticket URL": "URL na dticéad", "Ticket URL": "URL na dticéad",
"Create a new event": "Cruthaigh imeacht nua" "Create a new event": "Cruthaigh imeacht nua",
"Moderation policy or code of conduct": "Beartas modhnóireachta nó cód iompair"
} }

View File

@ -279,5 +279,6 @@
"Banner image": "बैनर की छवि", "Banner image": "बैनर की छवि",
"Maximum attendees": "अधिकतम उपस्थित", "Maximum attendees": "अधिकतम उपस्थित",
"Ticket URL": "टिकट URL", "Ticket URL": "टिकट URL",
"Create a new event": "एक नई घटना बनाएँ" "Create a new event": "एक नई घटना बनाएँ",
"Moderation policy or code of conduct": "मॉडरेशन पॉलिसी या आचार संहिता"
} }

View File

@ -279,5 +279,6 @@
"Banner image": "Immagine banner", "Banner image": "Immagine banner",
"Maximum attendees": "Numero massimo di partecipanti", "Maximum attendees": "Numero massimo di partecipanti",
"Ticket URL": "URL del biglietto", "Ticket URL": "URL del biglietto",
"Create a new event": "Crea un nuovo evento" "Create a new event": "Crea un nuovo evento",
"Moderation policy or code of conduct": "Politica di moderazione o codice di condotta"
} }

View File

@ -279,5 +279,6 @@
"Banner image": "バナー画像", "Banner image": "バナー画像",
"Maximum attendees": "最大参加者", "Maximum attendees": "最大参加者",
"Ticket URL": "チケットURL", "Ticket URL": "チケットURL",
"Create a new event": "新しいイベントを作成する" "Create a new event": "新しいイベントを作成する",
"Moderation policy or code of conduct": "モデレートポリシーまたは行動規範"
} }

View File

@ -275,5 +275,6 @@
"Banner image": "Banner image", "Banner image": "Banner image",
"Maximum attendees": "Maximum attendees", "Maximum attendees": "Maximum attendees",
"Ticket URL": "Ticket URL", "Ticket URL": "Ticket URL",
"Create a new event": "Create a new event" "Create a new event": "Create a new event",
"Moderation policy or code of conduct": "Moderation policy or code of conduct"
} }

View File

@ -279,5 +279,6 @@
"Banner image": "Imagem de banner", "Banner image": "Imagem de banner",
"Maximum attendees": "Máximo de participantes", "Maximum attendees": "Máximo de participantes",
"Ticket URL": "URL do bilhete", "Ticket URL": "URL do bilhete",
"Create a new event": "Crie um novo evento" "Create a new event": "Crie um novo evento",
"Moderation policy or code of conduct": "Política de moderação ou código de conduta"
} }

View File

@ -279,5 +279,6 @@
"Banner image": "Изображение баннера", "Banner image": "Изображение баннера",
"Maximum attendees": "Максимальное количество участников", "Maximum attendees": "Максимальное количество участников",
"Ticket URL": "URL билета", "Ticket URL": "URL билета",
"Create a new event": "Создать новое мероприятие" "Create a new event": "Создать новое мероприятие",
"Moderation policy or code of conduct": "Политика модерации или кодекс поведения"
} }

View File

@ -279,5 +279,6 @@
"Banner image": "横幅图片", "Banner image": "横幅图片",
"Maximum attendees": "参加人数上限", "Maximum attendees": "参加人数上限",
"Ticket URL": "工单URL", "Ticket URL": "工单URL",
"Create a new event": "建立新活动" "Create a new event": "建立新活动",
"Moderation policy or code of conduct": "审核政策或行为准则"
} }

View File

@ -1838,6 +1838,7 @@ def htmlNewPost(mediaInstance: bool, translate: {},
replyStr = '' replyStr = ''
showPublicOnDropdown = True showPublicOnDropdown = True
messageBoxHeight = 400
if not path.endswith('/newshare'): if not path.endswith('/newshare'):
if not path.endswith('/newreport'): if not path.endswith('/newreport'):
@ -2161,6 +2162,16 @@ def htmlNewPost(mediaInstance: bool, translate: {},
dateAndLocation += \ dateAndLocation += \
'<input type="time" name="endTime"></label>\n' '<input type="time" name="endTime"></label>\n'
if endpoint == 'newevent':
dateAndLocation += '</div>\n'
dateAndLocation += '<div class="container">\n'
dateAndLocation += '<br><label class="labels">' + \
translate['Moderation policy or code of conduct'] + \
': </label>\n'
dateAndLocation += \
' <textarea id="message" ' + \
'name="repliesModerationOption" style="height:' + \
str(messageBoxHeight) + 'px"></textarea>\n'
dateAndLocation += '</div>\n' dateAndLocation += '</div>\n'
dateAndLocation += '<div class="container">\n' dateAndLocation += '<div class="container">\n'
dateAndLocation += '<br><label class="labels">' + \ dateAndLocation += '<br><label class="labels">' + \
@ -2382,7 +2393,6 @@ def htmlNewPost(mediaInstance: bool, translate: {},
newPostForm += \ newPostForm += \
' <br><label class="labels">' + placeholderMessage + '</label>' ' <br><label class="labels">' + placeholderMessage + '</label>'
messageBoxHeight = 400
if mediaInstance: if mediaInstance:
messageBoxHeight = 200 messageBoxHeight = 200