mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
- 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:
parent
6242ef2755
commit
1655b080c4
1 changed files with 13 additions and 5 deletions
|
@ -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
|
||||||
- if @last_href
|
- else
|
||||||
|
%span.unavailable next
|
||||||
|
|
|
|
||||||
|
- 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'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue