Label after link

main
Bob Mottram 2020-09-05 12:34:41 +01:00
parent 4763226f70
commit 991c84ccab
1 changed files with 2 additions and 3 deletions

View File

@ -4243,13 +4243,12 @@ def individualPostAsHtml(allowDownloads: bool,
likeStr += \ likeStr += \
'<img loading="lazy" title="' + likeTitle + likeCountStr + \ '<img loading="lazy" title="' + likeTitle + likeCountStr + \
'" alt="' + likeTitle + \ '" alt="' + likeTitle + \
' |" src="/' + iconsDir + '/' + likeIcon + '"/>' ' |" src="/' + iconsDir + '/' + likeIcon + '"/></a>\n'
if likeCountStr: if likeCountStr:
# show the number of likes next to icon # show the number of likes next to icon
likeStr += '<label class="likesCount">' likeStr += '<label class="likesCount">'
likeStr += likeCountStr.replace('(', '').replace(')', '').strip() likeStr += likeCountStr.replace('(', '').replace(')', '').strip()
likeStr += '</label>' likeStr += '</label>\n'
likeStr += '</a>\n'
# benchmark 12.5 # benchmark 12.5
if not allowDownloads: if not allowDownloads: