]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Remove border=0 from feed icons
[rails.git] / app / helpers / application_helper.rb
index 17c36bdfe043066b81c518c9602546f3013af212..e81a9d4019897f54c9bd4fcbebc9f45b4051a3e0 100644 (file)
@@ -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"), args, :class => "rsssmall")
   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"), args, :class => "rsssmall")
   end
 
   def dir
@@ -41,8 +41,8 @@ module ApplicationHelper
     end
   end
 
-  def current_page_class(path)
-    :current if current_page?(path)
+  def header_nav_link_class(path)
+    ["nav-link", current_page?(path) ? "text-secondary-emphasis" : "text-secondary"]
   end
 
   def application_data