summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-21 11:17:31 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-21 11:17:31 +0000
commitb89d563078e2b7e3b78eb524747bdac5486bdd5b (patch)
tree3b183d9950367485b53c011e86aa1fed5c1bd5f7
parent64412071996da47cdd62f1ad91e37f49c7ade70c (diff)
downloadredmine-b89d563078e2b7e3b78eb524747bdac5486bdd5b.tar.gz
redmine-b89d563078e2b7e3b78eb524747bdac5486bdd5b.zip
scm: view: truncate author with length 30 (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7637 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/repositories/_revisions.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/repositories/_revisions.html.erb b/app/views/repositories/_revisions.html.erb
index 92c6fb535..4f5dd14a4 100644
--- a/app/views/repositories/_revisions.html.erb
+++ b/app/views/repositories/_revisions.html.erb
@@ -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 %>