X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a6938623711855016cbc4aa4f99beb825ce4731d..81a6c7b7bebb06c2e9711451e6795f65b34d59ca:/app/helpers/browse_helper.rb diff --git a/app/helpers/browse_helper.rb b/app/helpers/browse_helper.rb index a41b39a3d..9a49abd67 100644 --- a/app/helpers/browse_helper.rb +++ b/app/helpers/browse_helper.rb @@ -42,6 +42,14 @@ module BrowseHelper end end + def note_author(object) + if object.author.nil? + h(object.author_name) + else + link_to h(object.author_name), :controller => "user", :action => "view", :display_name => object.author_name + end + end + private ICON_TAGS = [