Use content_tag to render span icon on back link helper

This commit is contained in:
Bertocq
2017-07-26 19:13:46 +02:00
parent 6c5513ab38
commit 10da3dba58

View File

@@ -45,7 +45,7 @@ module ApplicationHelper
def back_link_to(destination = :back, text = t("shared.back")) def back_link_to(destination = :back, text = t("shared.back"))
link_to destination, class: "back" do link_to destination, class: "back" do
"<span class='icon-angle-left'></span>".html_safe + text content_tag(:span, class: 'icon-angle-left') + text
end end
end end