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

Version Path
social_stream-0.10.4 base/app/views/search/_header_search.html.erb
social_stream-base-0.9.14 app/views/search/_header_search.html.erb
social_stream-0.10.3 base/app/views/search/_header_search.html.erb
social_stream-base-0.9.13 app/views/search/_header_search.html.erb
social_stream-0.10.2 base/app/views/search/_header_search.html.erb
social_stream-base-0.9.12 app/views/search/_header_search.html.erb
social_stream-0.10.1 base/app/views/search/_header_search.html.erb
social_stream-0.10.0 base/app/views/search/_header_search.html.erb
social_stream-base-0.9.11 app/views/search/_header_search.html.erb
social_stream-0.9.7 base/app/views/search/_header_search.html.erb
social_stream-base-0.9.10 app/views/search/_header_search.html.erb
social_stream-0.9.6 base/app/views/search/_header_search.html.erb
social_stream-base-0.9.9 app/views/search/_header_search.html.erb
social_stream-0.9.5 base/app/views/search/_header_search.html.erb
social_stream-base-0.9.8 app/views/search/_header_search.html.erb
social_stream-0.9.4 base/app/views/search/_header_search.html.erb
social_stream-0.9.3 base/app/views/search/_header_search.html.erb
social_stream-base-0.9.7 app/views/search/_header_search.html.erb
social_stream-0.9.2 base/app/views/search/_header_search.html.erb
social_stream-base-0.9.6 app/views/search/_header_search.html.erb