mirror of https://gitlab.com/bashrc2/epicyon
Move summary
parent
ea6ad72228
commit
f2f81ddc52
|
@ -1521,7 +1521,8 @@ def individualPostAsHtml(allowDownloads: bool,
|
||||||
addEmojiToDisplayName(baseDir, httpPrefix,
|
addEmojiToDisplayName(baseDir, httpPrefix,
|
||||||
nickname, domain,
|
nickname, domain,
|
||||||
cwStr, False)
|
cwStr, False)
|
||||||
contentStr += '<label class="cw">' + cwStr + '</label>\n '
|
contentStr += \
|
||||||
|
'<label class="cw"><summary>' + cwStr + '</summary></label>\n '
|
||||||
if isModerationPost:
|
if isModerationPost:
|
||||||
containerClass = 'container report'
|
containerClass = 'container report'
|
||||||
# get the content warning text
|
# get the content warning text
|
||||||
|
|
|
@ -167,8 +167,8 @@ def getContentWarningButton(postID: str, translate: {},
|
||||||
content: str) -> str:
|
content: str) -> str:
|
||||||
"""Returns the markup for a content warning button
|
"""Returns the markup for a content warning button
|
||||||
"""
|
"""
|
||||||
return ' <details><summary><label class="cw">' + \
|
return ' <details class="cw">' + \
|
||||||
translate['SHOW MORE'] + '</label></summary>' + \
|
translate['SHOW MORE'] + \
|
||||||
'<div id="' + postID + '">' + content + \
|
'<div id="' + postID + '">' + content + \
|
||||||
'</div></details>\n'
|
'</div></details>\n'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue