Skip to content

HTTPS clone URL

Subversion checkout URL

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

Cannot retrieve contributors at this time

23 lines (21 sloc) 0.686 kb
%style(type="text/css")
:sass
ul.search-results
list-style-type: none
li:nth-child(even)
background: #EEE
li.selected
background: #999
%p
= form_tag(search_gists_path, :method => "get", :id => "search-form") do
= label_tag(:q, "Search your gists:")
= text_field_tag(:q, params[:q], :size => 50, :class => "mousetrap")
= submit_tag("Go")
= "(last indexed: #{current_user.last_gh_fetch ? current_user.last_gh_fetch.to_formatted_s(:short) : "not yet"})"
- if @results.size > 0
%ul.search-results
- for result in @results
%li
%p= search_result_link(result)
- else
%p= "No results found for \"#{params[:q]}\""
Jump to Line
Something went wrong with that request. Please try again.