Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: e416429816
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (23 sloc) 0.754 kB
%p
= form_tag(search_gists_path, :method => "get") do
= label_tag(:q, "Search your gists:")
= text_field_tag(:q, params[:q])
= submit_tag("Go")
= "(last updated: #{current_user.last_gh_fetch.to_formatted_s(:short)})"
%ul
- for result in @results
/ %p= result.inspect
- if result.highlight
%li
%p= link_to((result.highlight.description ? result.highlight['description'].first.html_safe : result.description), result.url)
- if(result.highlight[:'files.content'])
- result.highlight[:'files.content'].each do |highlight|
%p
%code= highlight
- else
%li
%p= link_to(result.description, result.url)
:javascript
$(function() {
$('#q').select();
})
Jump to Line
Something went wrong with that request. Please try again.