From 98b2172a9eeca508eb4d01d7db0c69085bca6543 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 9 Oct 2020 14:34:38 +0100 Subject: [PATCH] Newswire item color --- epicyon-profile.css | 2 +- webinterface.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index 700031b95..4342b620e 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -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; diff --git a/webinterface.py b/webinterface.py index ab08c07fa..4c2ff812f 100644 --- a/webinterface.py +++ b/webinterface.py @@ -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: