Replies title

main
Bob Mottram 2020-02-25 20:57:16 +00:00
parent fed40ed916
commit 5f3f9744fd
1 changed files with 6 additions and 4 deletions

10
blog.py
View File

@ -152,6 +152,11 @@ def htmlBlogPostContent(authorized: bool, \
blogStr+='<br><hr>\n' blogStr+='<br><hr>\n'
if not linkedAuthor:
blogStr+= \
'<p class="about"><a class="about" href="'+httpPrefix+'://'+domainFull+ \
'/users/'+nickname+'">'+translate['About the author']+'</a></p>\n'
if not authorized: if not authorized:
replies= \ replies= \
noOfBlogReplies(baseDir,httpPrefix,translate, \ noOfBlogReplies(baseDir,httpPrefix,translate, \
@ -162,16 +167,13 @@ def htmlBlogPostContent(authorized: bool, \
'<p class="blogreplies">'+ \ '<p class="blogreplies">'+ \
translate['Replies'].lower()+': '+str(replies)+'</p>' translate['Replies'].lower()+': '+str(replies)+'</p>'
else: else:
blogStr+='<h1>'+translate['Replies']+'</h1>'
blogStr+= \ blogStr+= \
getBlogReplies(baseDir,httpPrefix,translate, \ getBlogReplies(baseDir,httpPrefix,translate, \
nickname,domain,domainFull, \ nickname,domain,domainFull, \
postJsonObject) postJsonObject)
blogStr+='<br><hr>\n' blogStr+='<br><hr>\n'
if not linkedAuthor:
blogStr+= \
'<p class="about"><a class="about" href="'+httpPrefix+'://'+domainFull+ \
'/users/'+nickname+'">'+translate['About the author']+'</a></p>\n'
return blogStr return blogStr