##// END OF EJS Templates
Rails4: replace ActionView::Helpers::TextHelper#truncate by String#truncate at app/views/search/index.html.erb...
Toshi MARUYAMA -
r12562:4498df2d7ccd
parent child
Show More
@@ -30,7 +30,7
30 <% @results.each do |e| %>
30 <% @results.each do |e| %>
31 <dt class="<%= e.event_type %>">
31 <dt class="<%= e.event_type %>">
32 <%= content_tag('span', h(e.project), :class => 'project') unless @project == e.project %>
32 <%= content_tag('span', h(e.project), :class => 'project') unless @project == e.project %>
33 <%= link_to(highlight_tokens(truncate(e.event_title, :length => 255), @tokens), e.event_url) %>
33 <%= link_to(highlight_tokens(e.event_title.truncate(255), @tokens), e.event_url) %>
34 </dt>
34 </dt>
35 <dd><span class="description"><%= highlight_tokens(e.event_description, @tokens) %></span>
35 <dd><span class="description"><%= highlight_tokens(e.event_description, @tokens) %></span>
36 <span class="author"><%= format_time(e.event_datetime) %></span></dd>
36 <span class="author"><%= format_time(e.event_datetime) %></span></dd>
General Comments 0
You need to be logged in to leave comments. Login now