]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/browse_helper.rb
Show ref of object when no name is present
[rails.git] / app / helpers / browse_helper.rb
index 8f2ce5da7bad6d34f7abf692b50c21ba29ecad1b..494232744e3447feb079e31dd256db66fdf81413 100644 (file)
@@ -25,6 +25,8 @@ module BrowseHelper
         name = t "printable_name.with_name_html", :name => content_tag(:bdi, object.tags["name:#{locale}"].to_s), :id => content_tag(:bdi, name)
       elsif object.tags.include? "name"
         name = t "printable_name.with_name_html", :name => content_tag(:bdi, object.tags["name"].to_s), :id => content_tag(:bdi, name)
+      elsif object.tags.include? "ref"
+        name = t "printable_name.with_name_html", :name => content_tag(:bdi, object.tags["ref"].to_s), :id => content_tag(:bdi, name)
       end
     end