Sha256: ef380be251835bd8250f2371cef9a0b8035e181b33b9ed0e35cccec50f932c31
Contents?: true
Size: 1.53 KB
Versions: 4
Compression:
Stored size: 1.53 KB
Contents
#results - if (params[:q].strip.length > 0 rescue false) %h1 Search results for '#{params[:q]}' - if @graphpoints #visual :javascript $(function() { var graphdata = #{@graphpoints.to_json}; window.logstash.plot(graphdata); }); - if @total and @result_start and @result_end %small %strong Results #{@result_start} - #{@result_end} of #{@total} | - if @first_href %a.pager{ :href => @first_href } first | - if @prev_href %a.pager{ :href => @prev_href } prev - if @next_href | - if @next_href %a.pager{ :href => @next_href } next - if @last_href | %a.pager{ :href => @last_href } last - if @hits.length == 0 - if !params[:q] / 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 %table.results %tr %th timestamp %th event - @hits.reverse.each do |hit| %tr.event %td.timestamp&= hit["_source"]["@timestamp"] %td.message{ :"data-full" => hit.to_json } %pre&= hit["_source"]["@message"]
Version data entries
4 entries across 4 versions & 1 rubygems