X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/965123372d128d045951ddcc1e22b36038a88531..9f84c6f46e14eb64f985d2b67a331957f648380a:/app/views/browse/changeset.html.erb diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index 6a3e85680..81e1614c1 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -35,8 +35,7 @@ <%= t("browse.changeset.commented_by", :when => friendly_date(comment.created_at), :exact_time => l(comment.created_at), - :user => link_to(h(comment.author.display_name), {:controller => "user", :action => "view", - :display_name => comment.author.display_name})).html_safe %> + :user => link_to(h(comment.author.display_name), user_path(comment.author))).html_safe %> <% if current_user and current_user.moderator? %> — <%= t('javascripts.changesets.show.hide_comment') %> <% end %> @@ -48,8 +47,7 @@ <%= t("browse.changeset.hidden_commented_by", :when => friendly_date(comment.created_at), :exact_time => l(comment.created_at), - :user => link_to(h(comment.author.display_name), {:controller => "user", :action => "view", - :display_name => comment.author.display_name})).html_safe %> + :user => link_to(h(comment.author.display_name), user_path(comment.author))).html_safe %> — <%= t('javascripts.changesets.show.unhide_comment') %> <%= comment.body.to_html %>