forked from indymedia/epicyon
Displaying votes on newswire
parent
f3432d96f7
commit
68758e95f5
|
@ -5384,7 +5384,12 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool,
|
||||||
if 'vote:' in line:
|
if 'vote:' in line:
|
||||||
totalVotes += 1
|
totalVotes += 1
|
||||||
if totalVotes > 0:
|
if totalVotes > 0:
|
||||||
totalVotesStr = ' +' + str(totalVotes)
|
totalVotesStr = ' '
|
||||||
|
for v in range(totalVotes):
|
||||||
|
if positiveVoting:
|
||||||
|
totalVotesStr += '✓'
|
||||||
|
else:
|
||||||
|
totalVotesStr += '✗'
|
||||||
|
|
||||||
htmlStr += '<p class="newswireItemApproved">' + \
|
htmlStr += '<p class="newswireItemApproved">' + \
|
||||||
'<a href="' + item[1] + '">' + item[0] + '</a>' + \
|
'<a href="' + item[1] + '">' + item[0] + '</a>' + \
|
||||||
|
|
Loading…
Reference in New Issue