]> source.dussan.org Git - redmine.git/commitdiff
Adds link to author in revisions list (#23998).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Oct 2016 09:17:36 +0000 (09:17 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Oct 2016 09:17:36 +0000 (09:17 +0000)
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

index a8e0197f5e831e326d9e635c66bb4782dce3078a..435f0a76f46bb3ab42eee4cd4fc51b2a8b3b3284 100644 (file)
@@ -41,7 +41,7 @@ end %>
 <td class="checkbox"><%= 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) %></td>
 <td class="checkbox"><%= 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) %></td>
 <td class="committed_on"><%= format_time(changeset.committed_on) %></td>
-<td class="author"><%= changeset.author.to_s.truncate(30) %></td>
+<td class="author"><%= changeset.user.blank? ? changeset.author.to_s.truncate(30) : (link_to changeset.author.to_s.truncate(30), user_path(changeset.user)) %></td>
 <td class="comments"><%= textilizable(truncate_at_line_break(changeset.comments)) %></td>
 </tr>
 <% line_num += 1 %>