code format clean up app/views/search/index.html.erb

git-svn-id: http://svn.redmine.org/redmine/trunk@12814 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-02-05 08:54:12 +00:00
parent 47353387c1
commit fb1055eb3f
1 changed files with 5 additions and 3 deletions

View File

@ -25,11 +25,13 @@
<div id="search-results-counts"> <div id="search-results-counts">
<%= render_results_by_type(@results_by_type) unless @scope.size == 1 %> <%= render_results_by_type(@results_by_type) unless @scope.size == 1 %>
</div> </div>
<h3><%= l(:label_result_plural) %> (<%= @results_by_type.values.sum %>)</h3> <h3><%= l(:label_result_plural) %> (<%= @results_by_type.values.sum %>)</h3>
<dl id="search-results"> <dl id="search-results">
<% @results.each do |e| %> <% @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 %></dt> <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) %>
</dt>
<dd><span class="description"><%= highlight_tokens(e.event_description, @tokens) %></span> <dd><span class="description"><%= highlight_tokens(e.event_description, @tokens) %></span>
<span class="author"><%= format_time(e.event_datetime) %></span></dd> <span class="author"><%= format_time(e.event_datetime) %></span></dd>
<% end %> <% end %>