Sha256: de9ccbbb33fce30d67ed835d1715510e37c5bd9cd3bc14ef7841a84703850213
Contents?: true
Size: 793 Bytes
Versions: 21
Compression:
Stored size: 793 Bytes
Contents
<% total = 0 %> <ul> <% SocialStream.subjects.each do |subject_type| %> <% unless @search_result[subject_type].empty? %> <li class="title"> <%= subject_type.to_s.capitalize.pluralize %> </li> <% @search_result[subject_type].each do |subject|%> <% total+=1 %> <li class="subject_result"><%= subject_with_details subject %></li> <% end %> <% end %> </li> <% end %> <%= link_to raw('<li class="more">' + t('search.global.query', :query => truncate(params[:search_query],:length => 20)) + '<br>' + t('search.global.first_result.' + (total==1 ? 'one' : 'more'), :count => total.to_s) + '</li>'), search_path(:search_query => params[:search_query]) %> </ul>
Version data entries
21 entries across 21 versions & 2 rubygems