diff --git a/epicyon-profile.css b/epicyon-profile.css index fd329615e..700031b95 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -68,6 +68,8 @@ --quote-font-size: 120%; --line-spacing: 130%; --line-spacing-newswire: 100%; + --newswire-item-moderated-color: green; + --newswire-date-moderated-color: lightgreen; --column-left-width: 10vw; --column-center-width: 80vw; --column-right-width: 10vw; @@ -233,6 +235,19 @@ a:focus { line-height: var(--line-spacing-newswire); } +.newswireItemModerated { + font-size: var(--font-size-newswire); + color: var(--newswire-item-moderated-color); + line-height: var(--line-spacing-newswire); +} + +.newswireDateModerated { + font-size: var(--font-size-newswire); + font-weight: bold; + color: var(--newswire-date-moderated-color); + float: right; +} + .newswireItemVotedOn a:link { background: var(--newswire-voted-background-color); } diff --git a/webinterface.py b/webinterface.py index 136722db4..b6b0ab4ca 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5416,25 +5416,30 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool, else: totalVotesStr = '' totalVotes = 0 + moderatedItem = False if moderator: + moderatedItem = item[5] totalVotes = votesOnNewswireItem(item[2]) # show a number of ticks or crosses for how many # votes for or against totalVotesStr = \ votesIndicator(totalVotes, positiveVoting) - htmlStr += '
' + \ - '' + item[0] + '' + \ - totalVotesStr - if moderator: + if moderator and moderatedItem: + htmlStr += '
' + \ + '' + item[0] + '' + \ + totalVotesStr htmlStr += \ ' ' + \ '' + \ - '
' else: + htmlStr += '' + \
+ '' + item[0] + '' + \
+ totalVotesStr
htmlStr += '