Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 2cd70c6118
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (32 sloc) 0.851 kb
<% content_for :body_content_title do %>
Search Results for '<%=h params[:query] %>'
<% end %>
<% content_for :body_content_left do %>
<ul id="search_results">
<% @results.each do |result| %>
<li>
<span class='result_type'>
<%= result.class.to_s.titleize %>
</span>
<%= link_to raw(result.title.gsub(/(#{Regexp.escape(params[:query])})/i, '<mark>\1</mark>')), result_url(result) %>
</li>
<% end %>
</ul>
<% end %>
<%= render :partial => "/shared/content_page" %>
<% content_for :stylesheets do %>
<style type='text/css'>
#search_results {
list-style: none;
padding: 0;
margin: 0;
}
#search_results li {
border-bottom: 1px solid #CCC;
}
#search_results li span.result_type {
float: right;
color: #CCC;
}
</style>
<% end %>
Jump to Line
Something went wrong with that request. Please try again.