- Fix the default suggested query

This commit is contained in:
Jordan Sissel 2011-01-11 10:21:05 -08:00
parent 04f04b91b1
commit 3406d15eea

View file

@ -31,7 +31,10 @@
last
- if @hits.length == 0
- if !params[:q]
%h3#querystatus No query given. How about <a href="?q=* @timestamp:[#{(Time.now - 7*24*60*60).strftime("%Y-%m-%d")} TO #{(Time.now + 24*60*60).strftime("%Y-%m-%d")}]" class="querychanger">this?</a>
/ We default to a '+2 days' in the future to capture 'today at 00:00'
/ plus tomorrow, inclusive, in case you are 23 hours behind the international
/ dateline.
%h3#querystatus No query given. How about <a href="?q=* @timestamp:[#{(Time.now - 7*24*60*60).strftime("%Y-%m-%d")} TO #{(Time.now + 2*24*60*60).strftime("%Y-%m-%d")}]" class="querychanger">this?</a>
- else
%h3#querystatus No results for query '#{params[:q]}'
- else