summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb2
-rw-r--r--app/helpers/timelog_helper.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 215dca08c..da06e2b6a 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1307,7 +1307,7 @@ module ApplicationHelper
hidden_field_tag('back_url', url, :id => nil) unless url.blank?
end
- def render_cancel_button_tag(fallback_url)
+ def cancel_button_tag(fallback_url)
url = back_url.blank? ? fallback_url : back_url
link_to l(:button_cancel), url
end
diff --git a/app/helpers/timelog_helper.rb b/app/helpers/timelog_helper.rb
index 7248e8ed0..9cdfa9c13 100644
--- a/app/helpers/timelog_helper.rb
+++ b/app/helpers/timelog_helper.rb
@@ -115,9 +115,9 @@ module TimelogHelper
end
end
- def render_cancel_button_tag_for_time_entry(project)
+ def cancel_button_tag_for_time_entry(project)
fallback_path = project ? project_time_entries_path(project) : time_entries_path
- render_cancel_button_tag(fallback_path)
+ cancel_button_tag(fallback_path)
end
end