Newswire item colors

main
Bob Mottram 2020-10-09 14:13:51 +01:00
parent 1a284f3567
commit d60aad0659
1 changed files with 6 additions and 3 deletions

View File

@ -5427,8 +5427,9 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool,
if moderator and moderatedItem: if moderator and moderatedItem:
htmlStr += '<p class="newswireItemModerated">' + \ htmlStr += '<p class="newswireItemModerated">' + \
'<a href="' + item[1] + '">' + item[0] + '</a>' + \ '<a href="' + item[1] + '">' + \
totalVotesStr '<label class="newswireDateModerated">' + \
item[0] + '</label></a>' + totalVotesStr
htmlStr += \ htmlStr += \
' ' + \ ' ' + \
'<a href="/users/' + nickname + \ '<a href="/users/' + nickname + \
@ -5438,7 +5439,9 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool,
htmlStr += dateStr.replace('+00:00', '') + '</label></a></p>' htmlStr += dateStr.replace('+00:00', '') + '</label></a></p>'
else: else:
htmlStr += '<p class="newswireItem">' + \ htmlStr += '<p class="newswireItem">' + \
'<a href="' + item[1] + '">' + item[0] + '</a>' + \ '<a href="' + item[1] + '">' + \
'<label class="newswireItem">' + \
item[0] + '</label></a>' + \
totalVotesStr totalVotesStr
htmlStr += ' <label class="newswireDate">' htmlStr += ' <label class="newswireDate">'
htmlStr += dateStr.replace('+00:00', '') + '</label></p>' htmlStr += dateStr.replace('+00:00', '') + '</label></p>'