diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1f52f0eea..208ed3d3d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -40,4 +40,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 + "".html_safe + t("shared.back") + end + end end