Apply a class to emoticons for CSS selectability
This commit is contained in:
parent
bf294e0009
commit
2267a810c4
|
@ -68,7 +68,7 @@ def render(message):
|
||||||
for trigger in smileys["map"][img]:
|
for trigger in smileys["map"][img]:
|
||||||
if trigger in message:
|
if trigger in message:
|
||||||
# Substitute it.
|
# Substitute it.
|
||||||
sub = """<img src="{url}" alt="{trigger}" title="{trigger}">""".format(
|
sub = """<img src="{url}" class="rophako-emoticon" alt="{trigger}" title="{trigger}">""".format(
|
||||||
url="/static/smileys/{}/{}".format(Config.emoticons.theme, img),
|
url="/static/smileys/{}/{}".format(Config.emoticons.theme, img),
|
||||||
trigger=trigger,
|
trigger=trigger,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user