include query time in results

This commit is contained in:
Jordan Sissel 2011-02-13 01:36:07 -08:00
parent 9c6a1495d9
commit f97619a373

View file

@ -2,6 +2,7 @@
- if (params[:q].strip.length > 0 rescue false) - if (params[:q].strip.length > 0 rescue false)
%h1 %h1
Search results for '#{params[:q]}' Search results for '#{params[:q]}'
#querytime= "(query time: %.3f seconds)" % @results.duration
- if @total and @result_start and @result_end - if @total and @result_start and @result_end
%small %small
%strong %strong