%div{class: "flex flex-col space-y-2 justify-center"} %div{class: "flex justify-between"} %div = form_with(url: logs_path, method: :get, class: "flex items-center") do |f| %div{class: "space-x-0.5"} = f.text_field :q, value: params[:q], placeholder: "关键词", class: "border rounded-md m py-0.5 px-1" = f.select :stage, options_for_select([%w[aliyun_check aliyun_check], %w[aliyun_check aliyun_check], %w[qq_regex qq_regex], %w[wx_regex wx_regex], %w[local_check local_check]], params[:stage]), {include_blank: "-- 按Stage筛选 --"}, class: "border rounded-md m py-0.5 px-1" = f.submit "检索", class: "rounded-md px-2 py-1 text-sm bg-black text-white cursor-pointer" = link_to "重置", logs_path, class: "text-sm" %div{class: "text-sm text-gray-600"}="共 #{@pagy.count} 条" %div - if @logs.blank? %div{class: "flex justify-center text-gray-500 p-8 border rounded-md"} 空空如也 - else - @logs.each do |log| = render log %div{class: "flex justify-center"} = raw pagy_nav(@pagy)