Sha256: 62f078f9a119b1123bd7d283844225ea3be9ce2fe11a7f2b4af8b56003e1a07d
Contents?: true
Size: 813 Bytes
Versions: 4
Compression:
Stored size: 813 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
4 entries across 4 versions & 2 rubygems