summaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 668afe7fde1..4cf959f2d8e 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -113,6 +113,14 @@ module ApplicationHelper
content_tag(:i, nil, attributes.merge(class: class_names.join(' ')))
end
+ def material_symbol(icon, attributes = {})
+ inline_svg_tag(
+ "400-24px/#{icon}.svg",
+ class: %w(icon).concat(attributes[:class].to_s.split),
+ role: :img
+ )
+ end
+
def check_icon
inline_svg_tag 'check.svg'
end