Merge branch 'master' into legislation-module-stable

This commit is contained in:
Amaia Castro
2017-01-11 22:54:41 +01:00
235 changed files with 9717 additions and 656 deletions

View File

@@ -42,4 +42,11 @@ module ApplicationHelper
return false if authorable.blank? || user.blank?
authorable.author_id == user.id
end
def back_link_to(destination_path)
destination = destination_path || :back
link_to destination, class: "back" do
"<span class='icon-angle-left'></span>".html_safe + t("shared.back")
end
end
end