]> source.dussan.org Git - redmine.git/commitdiff
scm: view: truncate author with length 30 (#5501)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 21 Oct 2011 11:17:31 +0000 (11:17 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 21 Oct 2011 11:17:31 +0000 (11:17 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7637 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/_revisions.html.erb

index 92c6fb535a7a34b74940e6ff5dca9c0f127c53c2..4f5dd14a424534ff7d31e444c3f6bdca8650a500 100644 (file)
@@ -17,7 +17,7 @@
 <td class="checkbox"><%= radio_button_tag('rev', changeset.identifier, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').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}').checked==true) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %></td>
 <td class="committed_on"><%= format_time(changeset.committed_on) %></td>
-<td class="author"><%=h changeset.author %></td>
+<td class="author"><%= h truncate(changeset.author,:length => 30) %></td>
 <td class="comments"><%= textilizable(truncate_at_line_break(changeset.comments)) %></td>
 </tr>
 <% line_num += 1 %>