summaryrefslogtreecommitdiffstats
path: root/app/views/repositories
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-06 03:35:52 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-06 03:35:52 +0000
commit3d7748108161db07d5bbd18b30ca8033a4f80ee9 (patch)
tree1f457919564ab58de6a123035c687b3a80dd1a70 /app/views/repositories
parent4498df2d7ccd2eef2b6e917312e5a32532e8c4a5 (diff)
downloadredmine-3d7748108161db07d5bbd18b30ca8033a4f80ee9.tar.gz
redmine-3d7748108161db07d5bbd18b30ca8033a4f80ee9.zip
Rails4: replace ActionView::Helpers::TextHelper#truncate by String#truncate at app/views/repositories/_revisions.html.erb
git-svn-id: http://svn.redmine.org/redmine/trunk@12838 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/repositories')
-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 2a31793eb..6ef7d21c5 100644
--- a/app/views/repositories/_revisions.html.erb
+++ b/app/views/repositories/_revisions.html.erb
@@ -40,7 +40,7 @@ end %>
<td class="checkbox"><%= radio_button_tag('rev', changeset.identifier, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}').attr('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}').attr('checked')) {$('#cb-#{line_num-1}').attr('checked',true);}") if show_diff && (line_num > 1) %></td>
<td class="committed_on"><%= format_time(changeset.committed_on) %></td>
-<td class="author"><%= truncate(changeset.author.to_s, :length => 30) %></td>
+<td class="author"><%= changeset.author.to_s.truncate(30) %></td>
<td class="comments"><%= textilizable(truncate_at_line_break(changeset.comments)) %></td>
</tr>
<% line_num += 1 %>