X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/02ad2f5a5192404185d00ec1b53ae2982760c0ea..18883b59c88940b9bd323756e60603302f185dfd:/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 = [