mirror of https://gitlab.com/bashrc2/epicyon
Only show replies section if there are some
parent
03995be9f4
commit
51ab684fe2
3
blog.py
3
blog.py
|
@ -160,12 +160,12 @@ def htmlBlogPostContent(authorized: bool, \
|
||||||
'<p class="about"><a class="about" href="'+httpPrefix+'://'+domainFull+ \
|
'<p class="about"><a class="about" href="'+httpPrefix+'://'+domainFull+ \
|
||||||
'/users/'+nickname+'">'+translate['About the author']+'</a></p>\n'
|
'/users/'+nickname+'">'+translate['About the author']+'</a></p>\n'
|
||||||
|
|
||||||
if not authorized:
|
|
||||||
replies= \
|
replies= \
|
||||||
noOfBlogReplies(baseDir,httpPrefix,translate, \
|
noOfBlogReplies(baseDir,httpPrefix,translate, \
|
||||||
nickname,domain,domainFull, \
|
nickname,domain,domainFull, \
|
||||||
postJsonObject)
|
postJsonObject)
|
||||||
if replies>0:
|
if replies>0:
|
||||||
|
if not authorized:
|
||||||
blogStr+= \
|
blogStr+= \
|
||||||
'<p class="blogreplies">'+ \
|
'<p class="blogreplies">'+ \
|
||||||
translate['Replies'].lower()+': '+str(replies)+'</p>\n'
|
translate['Replies'].lower()+': '+str(replies)+'</p>\n'
|
||||||
|
@ -183,7 +183,6 @@ def htmlBlogPostContent(authorized: bool, \
|
||||||
nickname,domain,domainFull, \
|
nickname,domain,domainFull, \
|
||||||
postJsonObject).replace('>'+titleStr+'<','')
|
postJsonObject).replace('>'+titleStr+'<','')
|
||||||
blogStr+='<br><hr>\n'
|
blogStr+='<br><hr>\n'
|
||||||
|
|
||||||
return blogStr
|
return blogStr
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue