Added new icon helper
This commit is contained in:
@@ -10,4 +10,11 @@ module ApplicationHelper
|
|||||||
icon = path
|
icon = path
|
||||||
inline_svg_tag(icon, options)
|
inline_svg_tag(icon, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def bool_icon(bool)
|
||||||
|
case bool
|
||||||
|
when true then "check"
|
||||||
|
else "x-mark"
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user