Test button appearance

main
Bob Mottram 2020-02-25 18:24:14 +00:00
parent ba275abd60
commit 7136295057
1 changed files with 14 additions and 14 deletions

28
blog.py
View File

@ -172,20 +172,20 @@ def htmlBlogPage(session, \
if pageNumber: if pageNumber:
iconsDir=getIconsDir(baseDir) iconsDir=getIconsDir(baseDir)
navigateStr='<p>' navigateStr='<p>'
if pageNumber>1: #if pageNumber>1:
# show previous button # show previous button
navigateStr+= \ navigateStr+= \
'<a href="'+httpPrefix+'://'+domainFull+'/blog/'+nickname+'?page='+str(pageNumber-1)+'">'+ \ '<a href="'+httpPrefix+'://'+domainFull+'/blog/'+nickname+'?page='+str(pageNumber-1)+'">'+ \
'<img loading="lazy" alt="<" title="<" '+ \ '<img loading="lazy" alt="<" title="<" '+ \
'src="/'+iconsDir+ \ 'src="/'+iconsDir+ \
'/prev.png" class="buttonprev"/></a>\n' '/prev.png" class="buttonprev"/></a>\n'
if len(timelineJson['orderedItems'])>=noOfItems: #if len(timelineJson['orderedItems'])>=noOfItems:
# show next button # show next button
navigateStr+= \ navigateStr+= \
'<a href="'+httpPrefix+'://'+domainFull+'/blog/'+nickname+'?page='+str(pageNumber+1)+'">'+ \ '<a href="'+httpPrefix+'://'+domainFull+'/blog/'+nickname+'?page='+str(pageNumber+1)+'">'+ \
'<img loading="lazy" alt=">" title=">" '+ \ '<img loading="lazy" alt=">" title=">" '+ \
'src="/'+iconsDir+ \ 'src="/'+iconsDir+ \
'/prev.png" class="buttonnext"/></a>\n' '/prev.png" class="buttonnext"/></a>\n'
navigateStr='</p>' navigateStr='</p>'
blogStr+=navigateStr blogStr+=navigateStr