mirror of https://gitlab.com/bashrc2/epicyon
Show filtered words on moderator info screen
parent
c447f90ec9
commit
cc2b9735fc
|
@ -185,6 +185,22 @@ def htmlModerationInfo(cssCache: {}, translate: {},
|
||||||
blockedStr + '</textarea>'
|
blockedStr + '</textarea>'
|
||||||
infoForm += '</div>'
|
infoForm += '</div>'
|
||||||
infoShown = True
|
infoShown = True
|
||||||
|
|
||||||
|
filtersFilename = baseDir + '/accounts/filters.txt'
|
||||||
|
if os.path.isfile(filtersFilename):
|
||||||
|
with open(filtersFilename, "r") as f:
|
||||||
|
filteredStr = f.read()
|
||||||
|
infoForm += '<div class="container">'
|
||||||
|
infoForm += \
|
||||||
|
' <br><b>' + \
|
||||||
|
translate['Filtered words'] + '</b>'
|
||||||
|
infoForm += \
|
||||||
|
' <textarea id="message" ' + \
|
||||||
|
'name="filtered" style="height:700px">' + \
|
||||||
|
filteredStr + '</textarea>'
|
||||||
|
infoForm += '</div>'
|
||||||
|
infoShown = True
|
||||||
|
|
||||||
if not infoShown:
|
if not infoShown:
|
||||||
infoForm += \
|
infoForm += \
|
||||||
'<center><p>' + \
|
'<center><p>' + \
|
||||||
|
|
Loading…
Reference in New Issue