This commit is contained in:
2025-11-07 13:34:32 -08:00
commit 1e8c5a972b
436 changed files with 11000 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
module ApplicationHelper
def hide_from_user_style_tag
tag.style(<<~CSS.html_safe)
[data-hide-from-user-id="#{Current.user.id}"] {
display: none!important;
}
CSS
end
def custom_styles_tag
if custom_styles = Current.account&.custom_styles
tag.style(custom_styles.to_s.html_safe, data: { turbo_track: "reload" })
end
end
end