mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
make admin tools admin toolier
This commit is contained in:
@@ -19,5 +19,5 @@
|
||||
|
||||
.admin-tool {
|
||||
border-radius: 5px;
|
||||
border: 1px solid var(--uchu-gray);
|
||||
border: 1px solid var(--uchu-orange);
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@ module ApplicationHelper
|
||||
|
||||
def admin_tool(class_name = "", element = "div", **options, &block)
|
||||
return unless current_user&.is_admin?
|
||||
concat content_tag(element, class: "#{class_name}", **options, &block)
|
||||
concat content_tag(element, class: "admin-tool #{class_name}", **options, &block)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user