lib/gitdocs/views/search.haml in gitdocs-0.4.6 vs lib/gitdocs/views/search.haml in gitdocs-0.4.7
- old
+ new
@@ -1,6 +1,7 @@
- @title = "Matches for #{request.params['q'].inspect}"
+%script{ :src => "/js/search.js", :type => "text/javascript", :charset => "utf-8" }
.results{ "data-query" => request.params['q'] }
-if results.empty?
%h2 No results
-else
@@ -10,8 +11,6 @@
- search_results.each do |res|
%dt
%a{:href => "/#{repo.index}/#{res.file}"}
= "/#{res.file}"
%dd
- = res.context
-
-%script{ :src => "/js/search.js", :type => "text/javascript", :charset => "utf-8" }
+ = res.context
\ No newline at end of file