mirror of https://gitlab.com/bashrc2/epicyon
Highlight selected button
parent
de67a2afe4
commit
b26a42d798
|
@ -1300,7 +1300,7 @@ def htmlNewswireModeration(baseDir: str, path: str, translate: {}) -> str:
|
||||||
title = item[0]
|
title = item[0]
|
||||||
url = item[1]
|
url = item[1]
|
||||||
nick = item[2]
|
nick = item[2]
|
||||||
# status = item[3]
|
status = item[3]
|
||||||
postFilename = item[4].replace('/', '#')
|
postFilename = item[4].replace('/', '#')
|
||||||
|
|
||||||
# create the html for this post
|
# create the html for this post
|
||||||
|
@ -1321,16 +1321,26 @@ def htmlNewswireModeration(baseDir: str, path: str, translate: {}) -> str:
|
||||||
resultStr += \
|
resultStr += \
|
||||||
'<a href="' + basePath + \
|
'<a href="' + basePath + \
|
||||||
'/newswireapprove=' + postFilename + '">'
|
'/newswireapprove=' + postFilename + '">'
|
||||||
resultStr += \
|
if '[vote:' + nickname + ':approve]' in status:
|
||||||
'<button class="followApprove">' + \
|
resultStr += \
|
||||||
translate['Approve'] + '</button></a>'
|
'<button class="followApprove">' + \
|
||||||
|
translate['Approve'] + '</button></a>'
|
||||||
|
else:
|
||||||
|
resultStr += \
|
||||||
|
'<button class="followDeny">' + \
|
||||||
|
translate['Approve'] + '</button></a>'
|
||||||
|
|
||||||
resultStr += \
|
resultStr += \
|
||||||
'<a href="' + basePath + \
|
'<a href="' + basePath + \
|
||||||
'/newswiredeny=' + postFilename + '">'
|
'/newswiredeny=' + postFilename + '">'
|
||||||
resultStr += \
|
if '[vote:' + nickname + ':deny]' in status:
|
||||||
'<button class="followDeny">' + \
|
resultStr += \
|
||||||
translate['Deny'] + '</button></a>'
|
'<button class="followApprove">' + \
|
||||||
|
translate['Deny'] + '</button></a>'
|
||||||
|
else:
|
||||||
|
resultStr += \
|
||||||
|
'<button class="followDeny">' + \
|
||||||
|
translate['Deny'] + '</button></a>'
|
||||||
|
|
||||||
resultStr += \
|
resultStr += \
|
||||||
'<a href="' + basePath + \
|
'<a href="' + basePath + \
|
||||||
|
|
Loading…
Reference in New Issue