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": "مدونة",
"Blogs": "المدونات",
"Title": "عنوان",
"About the author": "عن المؤلف"
"About the author": "عن المؤلف",
"Edit blog post": "تحرير بلوق وظيفة"
}

View File

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

View File

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

View File

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

View File

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

View File

@ -2989,6 +2989,15 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
translate['Reply to this post']+ \
' |" 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=''
if not isModerationPost and showRepeatIcon:
# don't allow announce/repeat of your own posts
@ -3271,7 +3280,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
if showIcons:
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+='</div>'