mirror of https://gitlab.com/bashrc2/epicyon
Containers for reaction emoji categories
parent
1d5aef49f5
commit
00aa32082b
|
@ -2221,10 +2221,11 @@ def htmlEmojiReactionPicker(cssCache: {},
|
||||||
if not os.path.isfile(reactionsFilename):
|
if not os.path.isfile(reactionsFilename):
|
||||||
reactionsFilename = baseDir + '/emoji/default_reactions.json'
|
reactionsFilename = baseDir + '/emoji/default_reactions.json'
|
||||||
reactionsJson = loadJson(reactionsFilename)
|
reactionsJson = loadJson(reactionsFilename)
|
||||||
emojiPicksStr = '<br><div class="container">\n'
|
emojiPicksStr = ''
|
||||||
baseUrl = '/users/' + nickname
|
baseUrl = '/users/' + nickname
|
||||||
postId = removeIdEnding(postJsonObject['id'])
|
postId = removeIdEnding(postJsonObject['id'])
|
||||||
for category, item in reactionsJson.items():
|
for category, item in reactionsJson.items():
|
||||||
|
emojiPicksStr = '<br><div class="container">\n'
|
||||||
for emojiContent in item:
|
for emojiContent in item:
|
||||||
emojiContentEncoded = urllib.parse.quote_plus(emojiContent)
|
emojiContentEncoded = urllib.parse.quote_plus(emojiContent)
|
||||||
emojiUrl = \
|
emojiUrl = \
|
||||||
|
@ -2233,7 +2234,7 @@ def htmlEmojiReactionPicker(cssCache: {},
|
||||||
emojiLabel = '<label class="rlab">' + emojiContent + '</label>'
|
emojiLabel = '<label class="rlab">' + emojiContent + '</label>'
|
||||||
emojiPicksStr += \
|
emojiPicksStr += \
|
||||||
' <a href="' + emojiUrl + '">' + emojiLabel + '</a>\n'
|
' <a href="' + emojiUrl + '">' + emojiLabel + '</a>\n'
|
||||||
emojiPicksStr += '</div>\n'
|
emojiPicksStr += '</div>\n'
|
||||||
|
|
||||||
cssFilename = baseDir + '/epicyon-profile.css'
|
cssFilename = baseDir + '/epicyon-profile.css'
|
||||||
if os.path.isfile(baseDir + '/epicyon.css'):
|
if os.path.isfile(baseDir + '/epicyon.css'):
|
||||||
|
|
Loading…
Reference in New Issue