X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c3b8897c44531788f06a51e24470e97a3abfb7b8..a45af012b4c0a3f3d92bbe3da4a96356c31e2b4b:/app/helpers/application_helper.rb?ds=sidebyside diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3a0ad084b..160e25e35 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -102,4 +102,8 @@ module ApplicationHelper def friendly_date(date) content_tag(:span, time_ago_in_words(date), :title => l(date, :format => :friendly)) end + + def body_class + [params[:controller], "#{params[:controller]}-#{params[:action]}", @extra_body_class].compact.join(" ") + end end