mirror of https://gitlab.com/bashrc2/epicyon
Newswire moderation items listed
parent
fdaf02b5c7
commit
06f3c10cb2
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "تحرير الأخبار",
|
||||
"Add RSS feed links below.": "إضافة روابط تغذية RSS أدناه.",
|
||||
"Newswire RSS Feed": "Newswire موجز RSS",
|
||||
"Nicknames whose blog entries appear on the newswire.": "الألقاب التي تظهر إدخالات المدونة الخاصة بها على موقع الأخبار."
|
||||
"Nicknames whose blog entries appear on the newswire.": "الألقاب التي تظهر إدخالات المدونة الخاصة بها على موقع الأخبار.",
|
||||
"Posts to be approved": "الوظائف المطلوب الموافقة عليها",
|
||||
"Discuss": "مناقشة",
|
||||
"Moderator Discussion": "مناقشة المنسق"
|
||||
}
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "Editeu newswire",
|
||||
"Add RSS feed links below.": "Afegiu enllaços de canals RSS a continuació.",
|
||||
"Newswire RSS Feed": "Feed RSS de Newswire",
|
||||
"Nicknames whose blog entries appear on the newswire.": "Sobrenoms les entrades del bloc apareixen a newswire."
|
||||
"Nicknames whose blog entries appear on the newswire.": "Sobrenoms les entrades del bloc apareixen a newswire.",
|
||||
"Posts to be approved": "Missatges per aprovar",
|
||||
"Discuss": "Discuteix",
|
||||
"Moderator Discussion": "Discussió sobre moderadors"
|
||||
}
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "Golygu newyddion",
|
||||
"Add RSS feed links below.": "Ychwanegwch ddolenni porthiant RSS isod.",
|
||||
"Newswire RSS Feed": "Newswire RSS Feed",
|
||||
"Nicknames whose blog entries appear on the newswire.": "Llysenwau y mae eu cofnodion blog yn ymddangos ar y we newyddion."
|
||||
"Nicknames whose blog entries appear on the newswire.": "Llysenwau y mae eu cofnodion blog yn ymddangos ar y we newyddion.",
|
||||
"Posts to be approved": "Swyddi i'w cymeradwyo",
|
||||
"Discuss": "Trafodwch",
|
||||
"Moderator Discussion": "Trafodaeth Cymedrolwr"
|
||||
}
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "Newswire bearbeiten",
|
||||
"Add RSS feed links below.": "Fügen Sie unten RSS-Feed-Links hinzu.",
|
||||
"Newswire RSS Feed": "Newswire RSS Feed",
|
||||
"Nicknames whose blog entries appear on the newswire.": "Spitznamen, deren Blogeinträge im Newswire erscheinen."
|
||||
"Nicknames whose blog entries appear on the newswire.": "Spitznamen, deren Blogeinträge im Newswire erscheinen.",
|
||||
"Posts to be approved": "Zu genehmigende Beiträge",
|
||||
"Discuss": "Diskutieren",
|
||||
"Moderator Discussion": "Moderatorendiskussion"
|
||||
}
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "Edit newswire",
|
||||
"Add RSS feed links below.": "Add RSS feed links below.",
|
||||
"Newswire RSS Feed": "Newswire RSS Feed",
|
||||
"Nicknames whose blog entries appear on the newswire.": "Nicknames whose blog entries appear on the newswire."
|
||||
"Nicknames whose blog entries appear on the newswire.": "Nicknames whose blog entries appear on the newswire.",
|
||||
"Posts to be approved": "Posts to be approved",
|
||||
"Discuss": "Discuss",
|
||||
"Moderator Discussion": "Moderator Discussion"
|
||||
}
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "Editar newswire",
|
||||
"Add RSS feed links below.": "Agregue los enlaces de fuentes RSS a continuación.",
|
||||
"Newswire RSS Feed": "Canal RSS de Newswire",
|
||||
"Nicknames whose blog entries appear on the newswire.": "Apodos cuyas entradas de blog aparecen en el newswire."
|
||||
"Nicknames whose blog entries appear on the newswire.": "Apodos cuyas entradas de blog aparecen en el newswire.",
|
||||
"Posts to be approved": "Publicaciones a aprobar",
|
||||
"Discuss": "Discutir",
|
||||
"Moderator Discussion": "Discusión del moderador"
|
||||
}
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "Modifier le fil d'actualité",
|
||||
"Add RSS feed links below.": "Ajoutez des liens de flux RSS ci-dessous.",
|
||||
"Newswire RSS Feed": "Flux RSS de Newswire",
|
||||
"Nicknames whose blog entries appear on the newswire.": "Surnoms dont les entrées de blog apparaissent sur le fil de presse."
|
||||
"Nicknames whose blog entries appear on the newswire.": "Surnoms dont les entrées de blog apparaissent sur le fil de presse.",
|
||||
"Posts to be approved": "Postes à approuver",
|
||||
"Discuss": "Discuter",
|
||||
"Moderator Discussion": "Discussion du modérateur"
|
||||
}
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "Cuir sreang nuachta in eagar",
|
||||
"Add RSS feed links below.": "Cuir naisc beatha RSS thíos.",
|
||||
"Newswire RSS Feed": "Newswire RSS Feed",
|
||||
"Nicknames whose blog entries appear on the newswire.": "Leasainmneacha a bhfuil a n-iontrálacha blag le feiceáil ar an sreang nuachta."
|
||||
"Nicknames whose blog entries appear on the newswire.": "Leasainmneacha a bhfuil a n-iontrálacha blag le feiceáil ar an sreang nuachta.",
|
||||
"Posts to be approved": "Poist le ceadú",
|
||||
"Discuss": "Pléigh",
|
||||
"Moderator Discussion": "Plé Modhnóir"
|
||||
}
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "नवांश संपादित करें",
|
||||
"Add RSS feed links below.": "नीचे आरएसएस फ़ीड लिंक जोड़ें।",
|
||||
"Newswire RSS Feed": "Newswire RSS फ़ीड",
|
||||
"Nicknames whose blog entries appear on the newswire.": "उपनाम जिनकी ब्लॉग प्रविष्टियाँ न्यूज़वायर पर दिखाई देती हैं।"
|
||||
"Nicknames whose blog entries appear on the newswire.": "उपनाम जिनकी ब्लॉग प्रविष्टियाँ न्यूज़वायर पर दिखाई देती हैं।",
|
||||
"Posts to be approved": "स्वीकृत किए जाने वाले पद",
|
||||
"Discuss": "चर्चा करें",
|
||||
"Moderator Discussion": "मॉडरेटर चर्चा"
|
||||
}
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "Modifica newswire",
|
||||
"Add RSS feed links below.": "Aggiungi i link ai feed RSS di seguito.",
|
||||
"Newswire RSS Feed": "Feed RSS di Newswire",
|
||||
"Nicknames whose blog entries appear on the newswire.": "Soprannomi le cui voci di blog compaiono nel newswire."
|
||||
"Nicknames whose blog entries appear on the newswire.": "Soprannomi le cui voci di blog compaiono nel newswire.",
|
||||
"Posts to be approved": "Post da approvare",
|
||||
"Discuss": "Discutere",
|
||||
"Moderator Discussion": "Discussione del moderatore"
|
||||
}
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "ニュースワイヤーを編集",
|
||||
"Add RSS feed links below.": "以下にRSSフィードリンクを追加します。",
|
||||
"Newswire RSS Feed": "NewswireRSSフィード",
|
||||
"Nicknames whose blog entries appear on the newswire.": "ブログエントリがニュースワイヤーに表示されるニックネーム。"
|
||||
"Nicknames whose blog entries appear on the newswire.": "ブログエントリがニュースワイヤーに表示されるニックネーム。",
|
||||
"Posts to be approved": "承認される投稿",
|
||||
"Discuss": "議論する",
|
||||
"Moderator Discussion": "モデレーターディスカッション"
|
||||
}
|
||||
|
|
|
@ -293,5 +293,8 @@
|
|||
"Edit newswire": "Edit newswire",
|
||||
"Add RSS feed links below.": "Add RSS feed links below.",
|
||||
"Newswire RSS Feed": "Newswire RSS Feed",
|
||||
"Nicknames whose blog entries appear on the newswire.": "Nicknames whose blog entries appear on the newswire."
|
||||
"Nicknames whose blog entries appear on the newswire.": "Nicknames whose blog entries appear on the newswire.",
|
||||
"Posts to be approved": "Posts to be approved",
|
||||
"Discuss": "Discuss",
|
||||
"Moderator Discussion": "Moderator Discussion"
|
||||
}
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "Editar notícias",
|
||||
"Add RSS feed links below.": "Adicione links de feed RSS abaixo.",
|
||||
"Newswire RSS Feed": "Feed RSS da Newswire",
|
||||
"Nicknames whose blog entries appear on the newswire.": "Apelidos cujas entradas de blog aparecem nos jornais."
|
||||
"Nicknames whose blog entries appear on the newswire.": "Apelidos cujas entradas de blog aparecem nos jornais.",
|
||||
"Posts to be approved": "Postagens a serem aprovadas",
|
||||
"Discuss": "Discutir",
|
||||
"Moderator Discussion": "Discussão do moderador"
|
||||
}
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "Редактировать ленту новостей",
|
||||
"Add RSS feed links below.": "Добавьте ссылки на RSS-канал ниже.",
|
||||
"Newswire RSS Feed": "Лента новостей RSS",
|
||||
"Nicknames whose blog entries appear on the newswire.": "Псевдонимы, чьи записи блога появляются в ленте новостей."
|
||||
"Nicknames whose blog entries appear on the newswire.": "Псевдонимы, чьи записи блога появляются в ленте новостей.",
|
||||
"Posts to be approved": "Посты на утверждение",
|
||||
"Discuss": "Обсудить",
|
||||
"Moderator Discussion": "Обсуждение модератором"
|
||||
}
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"Edit newswire": "编辑新闻专线",
|
||||
"Add RSS feed links below.": "在下面添加RSS feed链接。",
|
||||
"Newswire RSS Feed": "Newswire RSS提要",
|
||||
"Nicknames whose blog entries appear on the newswire.": "博客条目出现在新闻专线上的昵称。"
|
||||
"Nicknames whose blog entries appear on the newswire.": "博客条目出现在新闻专线上的昵称。",
|
||||
"Posts to be approved": "职位待批准",
|
||||
"Discuss": "讨论",
|
||||
"Moderator Discussion": "主持人讨论"
|
||||
}
|
||||
|
|
|
@ -1274,6 +1274,67 @@ def htmlEditLinks(translate: {}, baseDir: str, path: str,
|
|||
return editLinksForm
|
||||
|
||||
|
||||
def htmlNewswireModeration(baseDir: str, path: str, translate: {}) -> str:
|
||||
"""Get a list of newswire items to be moderated
|
||||
"""
|
||||
if '/users/' not in path:
|
||||
return ''
|
||||
|
||||
# load the file containing newswire posts to be moderated
|
||||
newswireModerationFilename = baseDir + '/accounts/newswiremoderation.txt'
|
||||
moderateJson = loadJson(newswireModerationFilename)
|
||||
if not newswireJson:
|
||||
return ''
|
||||
|
||||
# get the nickname and actor path of the moderator
|
||||
nickname = path.split('/users/')[1]
|
||||
if '/' in nickname:
|
||||
nickname = nickname.split('/')[0]
|
||||
basePath = path.split('/users/')[0] + '/users/' + nickname
|
||||
|
||||
resultStr = ''
|
||||
|
||||
# for each post to be moderated
|
||||
for dateStr, item in moderateJson.items():
|
||||
# details of this post
|
||||
title = item[0]
|
||||
url = item[1]
|
||||
nick = item[2]
|
||||
status = item[3]
|
||||
postFilename = item[4].replace('/', '#')
|
||||
|
||||
# create the html for this post
|
||||
resultStr += '<div class="container">'
|
||||
resultStr += \
|
||||
'<a href="/users/' + url + '">'
|
||||
resultStr += \
|
||||
'<span class="followRequestHandle">' + \
|
||||
title + '</span></a>'
|
||||
|
||||
resultStr += \
|
||||
'<a href="' + basePath + \
|
||||
'/newswireapprove=' + postFilename + '">'
|
||||
resultStr += \
|
||||
'<button class="followApprove">' + \
|
||||
translate['Approve'] + '</button></a><br><br>'
|
||||
|
||||
resultStr += \
|
||||
'<a href="' + basePath + \
|
||||
'/newswiredeny=' + postFilename + '">'
|
||||
resultStr += \
|
||||
'<button class="followDeny">' + \
|
||||
translate['Deny'] + '</button></a>'
|
||||
|
||||
resultStr += \
|
||||
'<a href="' + basePath + \
|
||||
'/newswirediscuss=' + postFilename + '">'
|
||||
resultStr += \
|
||||
'<button class="followDeny">' + \
|
||||
translate['Discuss'] + '</button></a>'
|
||||
resultStr += '</div>'
|
||||
return resultStr
|
||||
|
||||
|
||||
def htmlEditNewswire(translate: {}, baseDir: str, path: str,
|
||||
domain: str, port: int, httpPrefix: str) -> str:
|
||||
"""Shows the edit newswire screen
|
||||
|
@ -1335,6 +1396,15 @@ def htmlEditNewswire(translate: {}, baseDir: str, path: str,
|
|||
|
||||
editNewswireForm += \
|
||||
'<div class="container">'
|
||||
|
||||
newswireModerationFilename = baseDir + '/accounts/newswiremoderation.txt'
|
||||
if os.path.isfile(newswireModerationFilename):
|
||||
editNewswireForm += \
|
||||
' ' + \
|
||||
translate['Posts to be approved'] + ':<br>'
|
||||
editNewswireForm += \
|
||||
htmlNewswireModeration(baseDir, path, translate) + '<br>'
|
||||
|
||||
editNewswireForm += \
|
||||
' ' + \
|
||||
translate['Add RSS feed links below.'] + \
|
||||
|
|
Loading…
Reference in New Issue