add: store ad clicked state in cookies
This commit is contained in:
parent
83971b3d20
commit
befd9096b1
5 changed files with 119 additions and 65 deletions
|
@ -1210,6 +1210,8 @@
|
|||
(text "{%- endif %}"))
|
||||
(div
|
||||
("class" "flex gap_2 hidden")
|
||||
("onclick" "window.EMOJI_PICKER_REACTION_MESSAGE_ID = '{{ message.id }}'")
|
||||
(text "{{ self::emoji_picker(element_id=\"react_emoji_picker_field\", render_dialog=false, render_button=true, small=true) }}")
|
||||
(text "{{ self::message_actions(owner=user, message=message, can_manage_message=can_manage_message) }}")))
|
||||
(text "{%- endif %}")
|
||||
(div
|
||||
|
@ -1232,14 +1234,12 @@
|
|||
("ui_ident" "emoji_{{ emoji }}")
|
||||
("onclick" "trigger('me::message_react', [event.target.parentElement.parentElement, '{{ message.id }}', '{{ emoji }}'])")
|
||||
(span (text "{{ emoji|emojis|safe }} {{ num }}")))
|
||||
(text "{%- endfor %}")
|
||||
|
||||
(div
|
||||
("class" "hidden")
|
||||
(text "{{ self::emoji_picker(element_id=\"react_emoji_picker_field\", render_dialog=false, render_button=true, small=true) }}"))))
|
||||
(text "{%- endfor %}")))
|
||||
(text "{% if grouped -%}")
|
||||
(div
|
||||
("class" "hidden")
|
||||
("class" "hidden flex gap_2 items_center")
|
||||
("onclick" "window.EMOJI_PICKER_REACTION_MESSAGE_ID = '{{ message.id }}'")
|
||||
(text "{{ self::emoji_picker(element_id=\"react_emoji_picker_field\", render_dialog=false, render_button=true, small=true) }}")
|
||||
(text "{{ self::message_actions(owner=user, message=message, can_manage_message=can_manage_message) }}"))
|
||||
(text "{%- endif %}"))))
|
||||
|
||||
|
@ -2740,7 +2740,7 @@
|
|||
(text "{%- endmacro %}")
|
||||
|
||||
(text "{% macro advertisement(size=\"Leaderboard\") -%}")
|
||||
(text "{% if not is_supporter and config.enable_user_ads -%}")
|
||||
(text "{% if user and not is_supporter and config.enable_user_ads -%}")
|
||||
(object ("class" "tetratto_ad") ("data-ad-size" "{{ size }}"))
|
||||
(text "{%- endif %}")
|
||||
(text "{%- endmacro %}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue