forked from indymedia/epicyon
Likes count after icon
parent
991c84ccab
commit
14102aede1
|
@ -142,6 +142,7 @@ a:focus {
|
||||||
.likesCount {
|
.likesCount {
|
||||||
font-size: var(--font-size-likes);
|
font-size: var(--font-size-likes);
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about {
|
.about {
|
||||||
|
|
|
@ -4232,6 +4232,11 @@ def individualPostAsHtml(allowDownloads: bool,
|
||||||
if timeDiff > 100:
|
if timeDiff > 100:
|
||||||
print('TIMING INDIV ' + boxName + ' 12.2 = ' + str(timeDiff))
|
print('TIMING INDIV ' + boxName + ' 12.2 = ' + str(timeDiff))
|
||||||
|
|
||||||
|
if likeCountStr:
|
||||||
|
# show the number of likes next to icon
|
||||||
|
likeStr += '<label class="likesCount">'
|
||||||
|
likeStr += likeCountStr.replace('(', '').replace(')', '').strip()
|
||||||
|
likeStr += '</label>\n'
|
||||||
likeStr = \
|
likeStr = \
|
||||||
'<a class="imageAnchor" href="/users/' + nickname + '?' + \
|
'<a class="imageAnchor" href="/users/' + nickname + '?' + \
|
||||||
likeLink + '=' + postJsonObject['object']['id'] + \
|
likeLink + '=' + postJsonObject['object']['id'] + \
|
||||||
|
@ -4244,11 +4249,6 @@ def individualPostAsHtml(allowDownloads: bool,
|
||||||
'<img loading="lazy" title="' + likeTitle + likeCountStr + \
|
'<img loading="lazy" title="' + likeTitle + likeCountStr + \
|
||||||
'" alt="' + likeTitle + \
|
'" alt="' + likeTitle + \
|
||||||
' |" src="/' + iconsDir + '/' + likeIcon + '"/></a>\n'
|
' |" src="/' + iconsDir + '/' + likeIcon + '"/></a>\n'
|
||||||
if likeCountStr:
|
|
||||||
# show the number of likes next to icon
|
|
||||||
likeStr += '<label class="likesCount">'
|
|
||||||
likeStr += likeCountStr.replace('(', '').replace(')', '').strip()
|
|
||||||
likeStr += '</label>\n'
|
|
||||||
|
|
||||||
# benchmark 12.5
|
# benchmark 12.5
|
||||||
if not allowDownloads:
|
if not allowDownloads:
|
||||||
|
|
Loading…
Reference in New Issue