Vote/block button
|
@ -135,6 +135,10 @@ blockquote p {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.voteicon {
|
||||||
|
width: 3vw;
|
||||||
|
}
|
||||||
|
|
||||||
.imageAnchor:focus img{
|
.imageAnchor:focus img{
|
||||||
border: 2px solid var(--focus-color);
|
border: 2px solid var(--focus-color);
|
||||||
}
|
}
|
||||||
|
|
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.2 KiB |
|
@ -5386,6 +5386,7 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool,
|
||||||
translate: {}, positiveVoting: bool) -> str:
|
translate: {}, positiveVoting: bool) -> str:
|
||||||
"""Converts a newswire dict into html
|
"""Converts a newswire dict into html
|
||||||
"""
|
"""
|
||||||
|
iconsDir = getIconsDir(baseDir)
|
||||||
htmlStr = ''
|
htmlStr = ''
|
||||||
for dateStr, item in newswire.items():
|
for dateStr, item in newswire.items():
|
||||||
dateStrLink = dateStr.replace(' ', 'T')
|
dateStrLink = dateStr.replace(' ', 'T')
|
||||||
|
@ -5429,12 +5430,13 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool,
|
||||||
htmlStr += '<p class="newswireItemModerated">' + \
|
htmlStr += '<p class="newswireItemModerated">' + \
|
||||||
'<a href="' + item[1] + '">' + \
|
'<a href="' + item[1] + '">' + \
|
||||||
item[0] + '</a>' + totalVotesStr
|
item[0] + '</a>' + totalVotesStr
|
||||||
htmlStr += \
|
htmlStr += ' ' + dateStr.replace('+00:00', '')
|
||||||
' ' + \
|
htmlStr += '<a href="/users/' + nickname + \
|
||||||
'<a href="/users/' + nickname + \
|
|
||||||
'/newswirevote=' + dateStrLink + '" ' + \
|
'/newswirevote=' + dateStrLink + '" ' + \
|
||||||
'title="' + translate['Vote'] + '">'
|
'title="' + translate['Vote'] + '">'
|
||||||
htmlStr += dateStr.replace('+00:00', '') + '</a></p>'
|
htmlStr += '<img class="voteicon" src="' + \
|
||||||
|
iconsDir + '/vote.png" /></a>'
|
||||||
|
htmlStr += '</p>'
|
||||||
else:
|
else:
|
||||||
htmlStr += '<p class="newswireItem">' + \
|
htmlStr += '<p class="newswireItem">' + \
|
||||||
'<a href="' + item[1] + '">' + \
|
'<a href="' + item[1] + '">' + \
|
||||||
|
|