module Shopapp3Helper def shopapp3_sidebar_icons controller.sidebar_actions_list.map do |sidebar_action| active = if controller.request.path == sidebar_action[:path] 'active' end <<~HTML HTML end.join("\n").html_safe end def shopapp3_favicon <<~HTML.html_safe HTML end end