mirror of https://gitlab.com/bashrc2/epicyon
Delete event button
parent
8b08d5d5c2
commit
b97a9861c8
|
@ -88,6 +88,8 @@ def getTodaysEvents(baseDir: str,nickname: str,domain: str, \
|
|||
calendarPostIds.append(postId)
|
||||
if not events.get(dayOfMonth):
|
||||
events[dayOfMonth]=[]
|
||||
# link to the id so that the event can be easily deleted
|
||||
postEvent['postId']=postId
|
||||
events[dayOfMonth].append(postEvent)
|
||||
|
||||
# if some posts have been deleted then regenerate the calendar file
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "هل أعجبتك هذه التدوينة",
|
||||
"Undo the like": "التراجع عن مثل",
|
||||
"Delete this post": "احذف هذا المنشور",
|
||||
"Delete this event": "احذف هذا الحدث",
|
||||
"Reply to this post": "الرد على هذا المنصب",
|
||||
"Write your post text below.": "اكتب نص المنشور أدناه.",
|
||||
"Write your reply to": "اكتب ردك على",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "M'agrada aquesta publicació",
|
||||
"Undo the like": "Desfer els similars",
|
||||
"Delete this post": "Suprimeix aquesta publicació",
|
||||
"Delete this event": "Suprimeix aquest esdeveniment",
|
||||
"Reply to this post": "Respon a aquesta publicació",
|
||||
"Write your post text below.": "Escriviu el vostre text a continuació.",
|
||||
"Write your reply to": "Escriviu la vostra resposta a",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "Hoffwch y swydd hon",
|
||||
"Undo the like": "Dadwneud y tebyg",
|
||||
"Delete this post": "Dileu'r swydd hon",
|
||||
"Delete this event": "Dileu'r digwyddiad hwn",
|
||||
"Reply to this post": "Ymateb i'r swydd hon",
|
||||
"Write your post text below.": "Ysgrifennwch destun eich post isod.",
|
||||
"Write your reply to": "Ysgrifennwch eich ateb i",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "Gefällt mir",
|
||||
"Undo the like": "Gefällt mir nicht mehr",
|
||||
"Delete this post": "Löschen",
|
||||
"Delete this event": "Löschen Sie dieses Ereignis",
|
||||
"Reply to this post": "Antworten",
|
||||
"Write your post text below.": "Schreiben Sie unten Ihren Beitrag.",
|
||||
"Write your reply to": "Schreiben Sie Ihre Antwort ",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "Like this post",
|
||||
"Undo the like": "Undo the like",
|
||||
"Delete this post": "Delete this post",
|
||||
"Delete this event": "Delete this event",
|
||||
"Reply to this post": "Reply to this post",
|
||||
"Write your post text below.": "Write your post text below.",
|
||||
"Write your reply to": "Write your reply to",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "Como esta publicación",
|
||||
"Undo the like": "Deshacer el me gusta",
|
||||
"Delete this post": "Borra esta publicación",
|
||||
"Delete this event": "Eliminar este evento",
|
||||
"Reply to this post": "Responder a esta publicación",
|
||||
"Write your post text below.": "Escribe el texto de tu publicación a continuación.",
|
||||
"Write your reply to": "Escribe tu respuesta a",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "Comme ce poste",
|
||||
"Undo the like": "Annuler le même",
|
||||
"Delete this post": "Supprimer ce post",
|
||||
"Delete this event": "Supprimer cet événement",
|
||||
"Reply to this post": "Répondre à ce post",
|
||||
"Write your post text below.": "Entrez votre message ci-dessous.",
|
||||
"Write your reply to": "Écrivez votre réponse à",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "Cosúil leis an bpost seo",
|
||||
"Undo the like": "Cealaigh a leithéid",
|
||||
"Delete this post": "Scrios an post seo",
|
||||
"Delete this event": "Scrios an imeacht seo",
|
||||
"Reply to this post": "Freagra ar an bpost seo",
|
||||
"Write your post text below.": "Scríobh do théacs poist thíos.",
|
||||
"Write your reply to": "Scríobh do fhreagra",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "इस डाक की तरह",
|
||||
"Undo the like": "की तरह पूर्ववत करें",
|
||||
"Delete this post": "इस पोस्ट को मिटायें",
|
||||
"Delete this event": "इस ईवेंट को हटा दें",
|
||||
"Reply to this post": "इस पोस्ट का जवाब दें",
|
||||
"Write your post text below.": "अपना पोस्ट टेक्स्ट नीचे लिखें।",
|
||||
"Write your reply to": "अपना उत्तर लिखें",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "Mi piace questo post",
|
||||
"Undo the like": "Annulla il mi piace",
|
||||
"Delete this post": "Elimina questo post",
|
||||
"Delete this event": "Elimina questo evento",
|
||||
"Reply to this post": "Rispondi a questo post",
|
||||
"Write your post text below.": "Scrivi il testo del tuo post qui sotto.",
|
||||
"Write your reply to": "Scrivi la tua risposta a",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "この投稿のように",
|
||||
"Undo the like": "元に戻す",
|
||||
"Delete this post": "この投稿を削除",
|
||||
"Delete this event": "このイベントを削除",
|
||||
"Reply to this post": "この投稿への返信",
|
||||
"Write your post text below.": "以下に投稿テキストを書いてください。",
|
||||
"Write your reply to": "への返信を書く",
|
||||
|
|
|
@ -104,7 +104,8 @@
|
|||
"Options for": "Opcions per",
|
||||
"Stop following": "Quitar de seguir",
|
||||
"Follow": "Seguir",
|
||||
"Delete this post?": "Suprimir aquesta publicacion ?",
|
||||
"Delete this post": "Suprimir aquesta publicacion ?",
|
||||
"Delete this event": "Suprimir aquesta publicacion ?",
|
||||
"No": "Non",
|
||||
"Yes": "Òc",
|
||||
"Info": "Info",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "Curtir este post",
|
||||
"Undo the like": "Desfazer o gosto",
|
||||
"Delete this post": "Excluir esta postagem",
|
||||
"Delete this event": "Excluir este evento",
|
||||
"Reply to this post": "Responder a este post",
|
||||
"Write your post text below.": "Escreva o texto da sua postagem abaixo.",
|
||||
"Write your reply to": "Escreva sua resposta para",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "Мне нравится этот пост",
|
||||
"Undo the like": "Отменить подобное",
|
||||
"Delete this post": "Удалить этот пост",
|
||||
"Delete this event": "Удалить это событие",
|
||||
"Reply to this post": "Ответить на этот пост",
|
||||
"Write your post text below.": "Напишите текст вашего поста ниже.",
|
||||
"Write your reply to": "Напишите свой ответ",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"Like this post": "喜欢这篇文章",
|
||||
"Undo the like": "撤消喜欢",
|
||||
"Delete this post": "删除此帖子",
|
||||
"Delete this event": "删除此活动",
|
||||
"Reply to this post": "回复此帖子",
|
||||
"Write your post text below.": "在下面写您的帖子文字。",
|
||||
"Write your reply to": "写您的回覆",
|
||||
|
|
|
@ -3665,13 +3665,19 @@ def htmlCalendarDay(translate: {}, \
|
|||
calendarStr+='</caption>\n'
|
||||
calendarStr+='<tbody>\n'
|
||||
|
||||
iconsDir=getIconsDir(baseDir)
|
||||
|
||||
if dayEvents:
|
||||
for eventPost in dayEvents:
|
||||
eventTime=None
|
||||
eventDescription=None
|
||||
eventPlace=None
|
||||
postId=None
|
||||
# get the time place and description
|
||||
for ev in eventPost:
|
||||
if ev['type']=='Event':
|
||||
if ev.get('postId'):
|
||||
postId=ev['postId']
|
||||
if ev.get('startTime'):
|
||||
eventDate=datetime.strptime(ev['startTime'],"%Y-%m-%dT%H:%M:%S%z")
|
||||
eventTime=eventDate.strftime("%H:%M").strip()
|
||||
|
@ -3680,16 +3686,21 @@ def htmlCalendarDay(translate: {}, \
|
|||
elif ev['type']=='Place':
|
||||
if ev.get('name'):
|
||||
eventPlace=ev['name']
|
||||
|
||||
deleteButtonStr=''
|
||||
if postId:
|
||||
deleteButtonStr='<td><a href="'+actor+'/calendardelete?id='+postId+'"><img loading="lazy" alt="'+translate['Delete this event']+' |" title="'+translate['Delete this event']+' |" src="/'+iconsDir+'/delete.png" /></a></td>'
|
||||
|
||||
if eventTime and eventDescription and eventPlace:
|
||||
calendarStr+='<tr><td class="calendar__day__time"><b>'+eventTime+'</b></td><td class="calendar__day__event"><span class="place">'+eventPlace+'</span><br>'+eventDescription+'</td></tr>\n'
|
||||
calendarStr+='<tr><td class="calendar__day__time"><b>'+eventTime+'</b></td><td class="calendar__day__event"><span class="place">'+eventPlace+'</span><br>'+eventDescription+'</td>'+deleteButtonStr+'</tr>\n'
|
||||
elif eventTime and eventDescription and not eventPlace:
|
||||
calendarStr+='<tr><td class="calendar__day__time"><b>'+eventTime+'</b></td><td class="calendar__day__event">'+eventDescription+'</td></tr>\n'
|
||||
calendarStr+='<tr><td class="calendar__day__time"><b>'+eventTime+'</b></td><td class="calendar__day__event">'+eventDescription+'</td>'+deleteButtonStr+'</tr>\n'
|
||||
elif not eventTime and eventDescription and not eventPlace:
|
||||
calendarStr+='<tr><td class="calendar__day__time"></td><td class="calendar__day__event">'+eventDescription+'</td></tr>\n'
|
||||
calendarStr+='<tr><td class="calendar__day__time"></td><td class="calendar__day__event">'+eventDescription+'</td>'+deleteButtonStr+'</tr>\n'
|
||||
elif not eventTime and eventDescription and eventPlace:
|
||||
calendarStr+='<tr><td class="calendar__day__time"></td><td class="calendar__day__event"><span class="place">'+eventPlace+'</span><br>'+eventDescription+'</td></tr>\n'
|
||||
calendarStr+='<tr><td class="calendar__day__time"></td><td class="calendar__day__event"><span class="place">'+eventPlace+'</span><br>'+eventDescription+'</td>'+deleteButtonStr+'</tr>\n'
|
||||
elif eventTime and not eventDescription and eventPlace:
|
||||
calendarStr+='<tr><td class="calendar__day__time"><b>'+eventTime+'</b></td><td class="calendar__day__event"><span class="place">'+eventPlace+'</span></td></tr>\n'
|
||||
calendarStr+='<tr><td class="calendar__day__time"><b>'+eventTime+'</b></td><td class="calendar__day__event"><span class="place">'+eventPlace+'</span></td>'+deleteButtonStr+'</tr>\n'
|
||||
|
||||
calendarStr+='</tbody>\n'
|
||||
calendarStr+='</table></main>\n'
|
||||
|
|
Loading…
Reference in New Issue