diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-06 03:35:36 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-06 03:35:36 +0000 |
commit | 4498df2d7ccd2eef2b6e917312e5a32532e8c4a5 (patch) | |
tree | e14cff796e9e5da391b868c248a26666c00c126e /app/views/search | |
parent | 34870add027bc5d36cb95bd2a3af87c3213dccb2 (diff) | |
download | redmine-4498df2d7ccd2eef2b6e917312e5a32532e8c4a5.tar.gz redmine-4498df2d7ccd2eef2b6e917312e5a32532e8c4a5.zip |
Rails4: replace ActionView::Helpers::TextHelper#truncate by String#truncate at app/views/search/index.html.erb
git-svn-id: http://svn.redmine.org/redmine/trunk@12837 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/search')
-rw-r--r-- | app/views/search/index.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb index 509663bca..9ea481619 100644 --- a/app/views/search/index.html.erb +++ b/app/views/search/index.html.erb @@ -30,7 +30,7 @@ <% @results.each do |e| %> <dt class="<%= e.event_type %>"> <%= content_tag('span', h(e.project), :class => 'project') unless @project == e.project %> - <%= link_to(highlight_tokens(truncate(e.event_title, :length => 255), @tokens), e.event_url) %> + <%= link_to(highlight_tokens(e.event_title.truncate(255), @tokens), e.event_url) %> </dt> <dd><span class="description"><%= highlight_tokens(e.event_description, @tokens) %></span> <span class="author"><%= format_time(e.event_datetime) %></span></dd> |