- Always include first/prev/next/last; otherwise, hiding them makes you

have to move the mouse if the next result set has a different list.
This commit is contained in:
Jordan Sissel 2011-02-13 02:01:05 -08:00
parent 6242ef2755
commit 1655b080c4

View file

@ -2,7 +2,6 @@
- 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
@ -10,19 +9,28 @@
| |
- if @first_href - if @first_href
%a.pager{ :href => @first_href } first %a.pager{ :href => @first_href } first
| - else
%span.unavailable first
|
- if @prev_href - if @prev_href
%a.pager{ :href => @prev_href } %a.pager{ :href => @prev_href }
prev prev
- if @next_href - else
| %span.unavailable prev
|
- if @next_href - if @next_href
%a.pager{ :href => @next_href } %a.pager{ :href => @next_href }
next next
- else
%span.unavailable next
|
- if @last_href - if @last_href
|
%a.pager{ :href => @last_href } %a.pager{ :href => @last_href }
last last
- else
%span.unavailable last
|
%span#querytime= "(%.3f seconds)" % @results.duration
- if @results.events.length == 0 - if @results.events.length == 0
- if !params[:q] - if !params[:q]
/ We default to a '+2 days' in the future to capture 'today at 00:00' / We default to a '+2 days' in the future to capture 'today at 00:00'