lib/picolena/templates/app/views/documents/show.html.haml in picolena-0.1.5 vs lib/picolena/templates/app/views/documents/show.html.haml in picolena-0.1.6
- old
+ new
@@ -1,12 +1,12 @@
-content_for :info_bar do
.info_bar
%p
-if nothing_found? then
- %span{:class=>'pagination'}=link_to_backup_search_engine(@query)
+ %span{:class=>'pagination'}=link_to_backup_search_engine(h(@query))
=:nothing_found_for.l
- %strong=@query
+ %strong=h(@query)
=show_time_needed(@time_needed)
-else
%span{:class=>'pagination'}=should_paginate(@matching_documents, @query)
- =describe_results(@matching_documents, @total_hits, @time_needed, @query)
+ =describe_results(@matching_documents, @total_hits, @time_needed, h(@query))
= render :partial =>'document', :collection => @matching_documents