X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5cb04d5ee04f843d9cacc8033b160cae1dd78215..f32aea6d1429ef55b7e5ec60bf83576cf76d85ed:/app/helpers/application_helper.rb?ds=sidebyside diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 368668a9b..ff6dcd2ff 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -10,11 +10,11 @@ module ApplicationHelper end def rss_link_to(args = {}) - link_to(image_tag("RSS.png", :size => "16x16", :border => 0), args, :class => "rsssmall") + link_to image_tag("RSS.png", :size => "16x16", :class => "align-text-bottom"), args end def atom_link_to(args = {}) - link_to(image_tag("RSS.png", :size => "16x16", :border => 0), args, :class => "rsssmall") + link_to image_tag("RSS.png", :size => "16x16", :class => "align-text-bottom"), args end def dir @@ -37,7 +37,8 @@ module ApplicationHelper if content_for? :body_class content_for :body_class else - "#{params[:controller]} #{params[:controller]}-#{params[:action]}" + controller_part = params[:controller].tr("/", "-") + "#{controller_part} #{controller_part}-#{params[:action]}" end end