Added new icon helper

This commit is contained in:
2024-08-27 11:24:50 +02:00
parent 1195da6843
commit 4f3342a850

View File

@@ -10,4 +10,11 @@ module ApplicationHelper
icon = path
inline_svg_tag(icon, options)
end
def bool_icon(bool)
case bool
when true then "check"
else "x-mark"
end
end
end