Sha256: 4d29a46b4a84bcb4a90d18ea0f60961019bf04f91959a58ccf599db2a9245aff
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 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'%> <h4><%=link_to result.title,blog_post_path(result.url_name)%></h4> <p><%=truncate(sanitize(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(sanitize(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.1.3 | app/views/search/_index.html.erb |