From 53427eb01c483b93258f6f714067f5687bef6c3d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 9 Oct 2016 09:17:36 +0000 Subject: [PATCH] Adds link to author in revisions list (#23998). Patch by Andrey Lobanov. git-svn-id: http://svn.redmine.org/redmine/trunk@15894 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 a8e0197f5..435f0a76f 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.author.to_s.truncate(30) %> +<%= changeset.user.blank? ? changeset.author.to_s.truncate(30) : (link_to changeset.author.to_s.truncate(30), user_path(changeset.user)) %> <%= textilizable(truncate_at_line_break(changeset.comments)) %> <% line_num += 1 %>