From 5e447c7555c81f5383fa79f6e7c0f4cbd6014f32 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 9 Oct 2016 09:19:35 +0000 Subject: [PATCH] Use #link_to_user (#23998). git-svn-id: http://svn.redmine.org/redmine/trunk@15895 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/repositories/_revisions.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/repositories/_revisions.html.erb b/app/views/repositories/_revisions.html.erb index 435f0a76f..9c72204fa 100644 --- a/app/views/repositories/_revisions.html.erb +++ b/app/views/repositories/_revisions.html.erb @@ -41,7 +41,7 @@ end %> <%= radio_button_tag('rev', changeset.identifier, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}').prop('checked',true);") if show_diff && (line_num < revisions.size) %> <%= radio_button_tag('rev_to', changeset.identifier, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('#cb-#{line_num}').prop('checked')) {$('#cb-#{line_num-1}').prop('checked',true);}") if show_diff && (line_num > 1) %> <%= format_time(changeset.committed_on) %> -<%= changeset.user.blank? ? changeset.author.to_s.truncate(30) : (link_to changeset.author.to_s.truncate(30), user_path(changeset.user)) %> +<%= changeset.user.blank? ? changeset.author.to_s.truncate(30) : link_to_user(changeset.user) %> <%= textilizable(truncate_at_line_break(changeset.comments)) %> <% line_num += 1 %> -- 2.39.5