forked from indymedia/epicyon
Remove newswire moderation color
parent
a91f7bbb75
commit
ef94e153ea
|
@ -67,7 +67,6 @@
|
|||
--quote-font-size: 120%;
|
||||
--line-spacing: 130%;
|
||||
--line-spacing-newswire: 100%;
|
||||
--newswire-moderate-color: yellow;
|
||||
--column-left-width: 10vw;
|
||||
--column-center-width: 80vw;
|
||||
--column-right-width: 10vw;
|
||||
|
@ -232,13 +231,6 @@ a:focus {
|
|||
line-height: var(--line-spacing-newswire);
|
||||
}
|
||||
|
||||
.newswireItemModerate {
|
||||
font-size: var(--font-size-newswire);
|
||||
color: var(--newswire-moderate-color);
|
||||
font-weight: bold;
|
||||
line-height: var(--line-spacing-newswire);
|
||||
}
|
||||
|
||||
.newswireDate {
|
||||
font-size: var(--font-size-newswire);
|
||||
color: var(--newswire-date-color);
|
||||
|
|
|
@ -5358,19 +5358,8 @@ def htmlNewswire(newswire: str) -> str:
|
|||
"""
|
||||
htmlStr = ''
|
||||
for dateStr, item in newswire.items():
|
||||
# if the item is to be moderated then show it in a different style
|
||||
shown = False
|
||||
if len(item) > 2:
|
||||
if item[2].startswith('moderate'):
|
||||
moderationUrl = '/moderate?' + item[1]
|
||||
htmlStr += '<p class="newswireItemModerate">' + \
|
||||
'<a href="' + moderationUrl + '">' + item[0] + '</a>'
|
||||
shown = True
|
||||
|
||||
if not shown:
|
||||
# unmoderated item
|
||||
htmlStr += '<p class="newswireItem">' + \
|
||||
'<a href="' + item[1] + '">' + item[0] + '</a>'
|
||||
htmlStr += '<p class="newswireItem">' + \
|
||||
'<a href="' + item[1] + '">' + item[0] + '</a>'
|
||||
htmlStr += ' <label class="newswireDate">'
|
||||
htmlStr += dateStr.replace('+00:00', '') + '</label></p>'
|
||||
return htmlStr
|
||||
|
|
Loading…
Reference in New Issue