]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace ActionView::Helpers::TextHelper#truncate by String#truncate at app...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 6 Feb 2014 03:36:08 +0000 (03:36 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 6 Feb 2014 03:36:08 +0000 (03:36 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12839 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/_dir_list_content.html.erb

index dcee3dfc1d0de9205cb542c875e6ba7ed33dbe12..21f205ad74dc8f3807bf80a244455801fdcf8594 100644 (file)
@@ -25,7 +25,7 @@
 <td class="revision"><%= link_to_revision(entry.changeset, @repository) if entry.changeset %></td>
 <td class="age"><%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %></td>
 <td class="author"><%= entry.author %></td>
-<td class="comments"><%= truncate(entry.changeset.comments, :length => 50) if entry.changeset %></td>
+<td class="comments"><%= entry.changeset.comments.truncate(50) if entry.changeset %></td>
 <% end %>
 </tr>
 <% end %>