Newswire item color

merge-requests/8/head
Bob Mottram 2020-10-09 14:34:38 +01:00
parent 4dbbb3a9fa
commit 98b2172a9e
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@
--main-header-color-roles: #282237;
--main-fg-color: #dddddd;
--column-left-fg-color: #dddddd;
--column-right-fg-color: #dddddd;
--column-right-fg-color: yellow;
--column-right-fg-color-voted-on: red;
--main-link-color: #999;
--main-link-color-hover: #bbb;

View File

@ -5390,7 +5390,8 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool,
for dateStr, item in newswire.items():
dateStrLink = dateStr.replace(' ', 'T')
dateStrLink = dateStrLink.replace('+00:00', '')
if 'vote:' + nickname in item[2]:
moderatedItem = item[5]
if moderatedItem and 'vote:' + nickname in item[2]:
totalVotesStr = ''
totalVotes = 0
if moderator: