Added new icon helper
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user