From: Toshi MARUYAMA Date: Thu, 6 Feb 2014 03:35:52 +0000 (+0000) Subject: Rails4: replace ActionView::Helpers::TextHelper#truncate by String#truncate at app... X-Git-Tag: 2.5.0~62 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3d7748108161db07d5bbd18b30ca8033a4f80ee9;p=redmine.git 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 --- 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 %> <%= 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) %> <%= 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) %> <%= format_time(changeset.committed_on) %> -<%= truncate(changeset.author.to_s, :length => 30) %> +<%= changeset.author.to_s.truncate(30) %> <%= textilizable(truncate_at_line_break(changeset.comments)) %> <% line_num += 1 %>