mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 20:55:10 +00:00
6 lines
231 B
Ruby
6 lines
231 B
Ruby
module ApplicationHelper
|
|
def admin_tool(class_name: "", element: "div", **options, &block)
|
|
return unless current_user&.is_admin?
|
|
concat content_tag(element, class: "admin-tool #{class_name}", **options, &block)
|
|
end
|
|
end
|