Mercurial > hg > soundsoftware-site
diff app/views/search/index.rhtml @ 323:1333582e34c4 bug_94
Place search results refinement links immediately beneath results heading to
make them more obvious. Partly resolves #94
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 29 Mar 2011 11:13:50 +0100 |
parents | 513646585e45 |
children | 350acce374a2 87bfac1079fd |
line wrap: on
line diff
--- a/app/views/search/index.rhtml Tue Mar 29 10:50:32 2011 +0100 +++ b/app/views/search/index.rhtml Tue Mar 29 11:13:50 2011 +0100 @@ -19,11 +19,11 @@ </div> <% if @results %> + + <h3><%= l(:label_result_plural) %> (<%= @results_by_type.values.sum %>)</h3> <div id="search-results-counts"> <%= render_results_by_type(@results_by_type) unless @scope.size == 1 %> </div> - - <h3><%= l(:label_result_plural) %> (<%= @results_by_type.values.sum %>)</h3> <dl id="search-results"> <% @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>