Edit blog post button

merge-requests/6/head
Bob Mottram 2020-02-29 23:59:48 +00:00
parent f941d2541c
commit c68174540a
16 changed files with 41 additions and 17 deletions

View File

@ -216,5 +216,6 @@
"Blog": "مدونة", "Blog": "مدونة",
"Blogs": "المدونات", "Blogs": "المدونات",
"Title": "عنوان", "Title": "عنوان",
"About the author": "عن المؤلف" "About the author": "عن المؤلف",
"Edit blog post": "تحرير بلوق وظيفة"
} }

View File

@ -216,5 +216,6 @@
"Blog": "Bloc", "Blog": "Bloc",
"Blogs": "Blocs", "Blogs": "Blocs",
"Title": "Títol", "Title": "Títol",
"About the author": "Sobre lautor" "About the author": "Sobre lautor",
"Edit blog post": "Edita la publicació del bloc"
} }

View File

@ -216,5 +216,6 @@
"Blog": "Blog", "Blog": "Blog",
"Blogs": "Blogs", "Blogs": "Blogs",
"Title": "Teitl", "Title": "Teitl",
"About the author": "Am yr awdur" "About the author": "Am yr awdur",
"Edit blog post": "Golygu post blog"
} }

View File

@ -216,5 +216,6 @@
"Blog": "Blog", "Blog": "Blog",
"Blogs": "Blogs", "Blogs": "Blogs",
"Title": "Titel", "Title": "Titel",
"About the author": "Über den Autor" "About the author": "Über den Autor",
"Edit blog post": "Blog-Beitrag bearbeiten"
} }

View File

@ -216,5 +216,6 @@
"Blog": "Blog", "Blog": "Blog",
"Blogs": "Blogs", "Blogs": "Blogs",
"Title": "Title", "Title": "Title",
"About the author": "About the author" "About the author": "About the author",
"Edit blog post": "Edit blog post"
} }

View File

@ -216,5 +216,6 @@
"Blog": "Blog", "Blog": "Blog",
"Blogs": "Blogs", "Blogs": "Blogs",
"Title": "Título", "Title": "Título",
"About the author": "Sobre la autora" "About the author": "Sobre la autora",
"Edit blog post": "Editar publicación de blog"
} }

View File

@ -216,5 +216,6 @@
"Blog": "Blog", "Blog": "Blog",
"Blogs": "Blogs", "Blogs": "Blogs",
"Title": "Titre", "Title": "Titre",
"About the author": "A propos de l'auteur" "About the author": "A propos de l'auteur",
"Edit blog post": "Modifier le billet de blog"
} }

View File

@ -216,5 +216,6 @@
"Blog": "Blag", "Blog": "Blag",
"Blogs": "Blaganna", "Blogs": "Blaganna",
"Title": "Teideal", "Title": "Teideal",
"About the author": "Faoin tÚdar" "About the author": "Faoin tÚdar",
"Edit blog post": "Cuir post an bhlag in eagar"
} }

View File

@ -216,5 +216,6 @@
"Blog": "ब्लॉग", "Blog": "ब्लॉग",
"Blogs": "ब्लॉग", "Blogs": "ब्लॉग",
"Title": "शीर्षक", "Title": "शीर्षक",
"About the author": "लेखक के बारे में" "About the author": "लेखक के बारे में",
"Edit blog post": "ब्लॉग पोस्ट संपादित करें"
} }

View File

@ -216,5 +216,6 @@
"Blog": "Blog", "Blog": "Blog",
"Blogs": "Blog", "Blogs": "Blog",
"Title": "Titolo", "Title": "Titolo",
"About the author": "Circa l'autore" "About the author": "Circa l'autore",
"Edit blog post": "Modifica post del blog"
} }

View File

@ -216,5 +216,6 @@
"Blog": "ブログ", "Blog": "ブログ",
"Blogs": "ブログ", "Blogs": "ブログ",
"Title": "題名", "Title": "題名",
"About the author": "著者について" "About the author": "著者について",
"Edit blog post": "ブログ投稿を編集"
} }

View File

@ -212,5 +212,6 @@
"Blog": "Blog", "Blog": "Blog",
"Blogs": "Blogs", "Blogs": "Blogs",
"Title": "Title", "Title": "Title",
"About the author": "About the author" "About the author": "About the author",
"Edit blog post": "Edit blog post"
} }

View File

@ -216,5 +216,6 @@
"Blog": "Blog", "Blog": "Blog",
"Blogs": "Blogs", "Blogs": "Blogs",
"Title": "Título", "Title": "Título",
"About the author": "Sobre o autor" "About the author": "Sobre o autor",
"Edit blog post": "Editar postagem do blog"
} }

View File

@ -216,5 +216,6 @@
"Blog": "Блог", "Blog": "Блог",
"Blogs": "Блоги", "Blogs": "Блоги",
"Title": "заглавие", "Title": "заглавие",
"About the author": "Об авторе" "About the author": "Об авторе",
"Edit blog post": "Редактировать сообщение в блоге"
} }

View File

@ -216,5 +216,6 @@
"Blog": "博客", "Blog": "博客",
"Blogs": "网志", "Blogs": "网志",
"Title": "标题", "Title": "标题",
"About the author": "关于作者" "About the author": "关于作者",
"Edit blog post": "编辑博客文章"
} }

View File

@ -2982,13 +2982,22 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
'<a href="/users/'+nickname+'?replyfollowers='+replyToLink+ \ '<a href="/users/'+nickname+'?replyfollowers='+replyToLink+ \
'?actor='+postJsonObject['actor']+ \ '?actor='+postJsonObject['actor']+ \
'" title="'+translate['Reply to this post']+'">' '" title="'+translate['Reply to this post']+'">'
replyStr+= \ replyStr+= \
'<img loading="lazy" title="'+ \ '<img loading="lazy" title="'+ \
translate['Reply to this post']+' |" alt="'+ \ translate['Reply to this post']+' |" alt="'+ \
translate['Reply to this post']+ \ translate['Reply to this post']+ \
' |" src="/'+iconsDir+'/reply.png"/></a>' ' |" src="/'+iconsDir+'/reply.png"/></a>'
editStr=''
if fullDomain+'/users/'+nickname in postJsonObject['actor']:
if isBlogPost(postJsonObject):
editStr+= \
'<a href="/users/'+nickname+'?editblogpost='+ \
postJsonObject['object']['id']+ \
'?actor='+postJsonObject['actor']+ \
'" title="'+translate['Edit blog post']+'">'
announceStr='' announceStr=''
if not isModerationPost and showRepeatIcon: if not isModerationPost and showRepeatIcon:
# don't allow announce/repeat of your own posts # don't allow announce/repeat of your own posts
@ -3271,7 +3280,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
if showIcons: if showIcons:
footerStr='<div class="'+containerClassIcons+'">' footerStr='<div class="'+containerClassIcons+'">'
footerStr+=replyStr+announceStr+likeStr+bookmarkStr+deleteStr+muteStr footerStr+=replyStr+announceStr+likeStr+bookmarkStr+deleteStr+muteStr+editStr
footerStr+='<a href="'+publishedLink+'" class="'+timeClass+'">'+publishedStr+'</a>\n' footerStr+='<a href="'+publishedLink+'" class="'+timeClass+'">'+publishedStr+'</a>\n'
footerStr+='</div>' footerStr+='</div>'