Sha256: 071933c458be451c514df06f98cfe980365762254096c66e934a76924696f5a9
Contents?: true
Size: 798 Bytes
Versions: 1
Compression:
Stored size: 798 Bytes
Contents
<h3>Search Results</h3> <div class="results"> <%if @results.blank?%> <p>No Results Found.</p> <%else%> <%@results.each do |result|%> <div class="result"> <%if result.class.name == 'SpudPost'%> <%if result.is_news == true%> <h4><%=link_to result.title,news_post_path(result.url_name)%></h4> <%else%> <h4><%=link_to result.title,blog_post_path(result.url_name)%></h4> <%end%> <p><%=truncate(strip_tags(result.content),:length => 200, :separator => ' ')%></p> <%elsif result.class.name == 'SpudPage'%> <h4><%=link_to result.name,page_path(:id => result.url_name)%></h4> <p><%=truncate(strip_tags(result.meta_description),:length => 200, :separator => ' ')%></p> <%end%> </div> <%end%> <%=will_paginate @results%> <%end%> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spud_search-0.9.0 | app/views/search/_index.html.erb |