Vote/block button

main
Bob Mottram 2020-10-09 15:27:29 +01:00
parent ae0b8b70ec
commit 804511bf32
13 changed files with 10 additions and 4 deletions

View File

@ -135,6 +135,10 @@ blockquote p {
display: inline;
}
.voteicon {
width: 3vw;
}
.imageAnchor:focus img{
border: 2px solid var(--focus-color);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
img/icons/vote.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -5386,6 +5386,7 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool,
translate: {}, positiveVoting: bool) -> str:
"""Converts a newswire dict into html
"""
iconsDir = getIconsDir(baseDir)
htmlStr = ''
for dateStr, item in newswire.items():
dateStrLink = dateStr.replace(' ', 'T')
@ -5429,12 +5430,13 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool,
htmlStr += '<p class="newswireItemModerated">' + \
'<a href="' + item[1] + '">' + \
item[0] + '</a>' + totalVotesStr
htmlStr += \
' ' + \
'<a href="/users/' + nickname + \
htmlStr += ' ' + dateStr.replace('+00:00', '')
htmlStr += '<a href="/users/' + nickname + \
'/newswirevote=' + dateStrLink + '" ' + \
'title="' + translate['Vote'] + '">'
htmlStr += dateStr.replace('+00:00', '') + '</a></p>'
htmlStr += '<img class="voteicon" src="' + \
iconsDir + '/vote.png" /></a>'
htmlStr += '</p>'
else:
htmlStr += '<p class="newswireItem">' + \
'<a href="' + item[1] + '">' + \