<NME> ajax.haml
<BEF> ADDFILE
<MSG> - Use ajax calls to update search
- Make search interactive


<DFF> @@ -0,0 +1,10 @@
+#results
+  %ul.results
+    - @hits.reverse.each do |hit|
+      %li.event{ :"data-full" => hit.to_json }
+        = hit["_source"]["message"]
+    - if @hits.length == 0 
+      - if !params[:q]
+        No query given. How about <a href="#*">this?</a>
+      - else
+        No results for query '#{params[:q]}' 

- Use ajax calls to update search - Make search interactive