]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/browse_helper.rb
Move routing API endpoint addresses to config file
[rails.git] / app / helpers / browse_helper.rb
index 3723186b89d7f568cad2966c927672f87e601421..6c9e108dcb7c20860e5540fcf47f67d6a9fe9fad 100644 (file)
@@ -52,6 +52,10 @@ module BrowseHelper
     end
   end
 
+  def link_follow(object)
+    "nofollow" if object.tags.empty?
+  end
+
   def format_key(key)
     if url = wiki_link("key", key)
       link_to h(key), url, :title => t("browse.tag_details.wiki_link.key", :key => key)