%div{class: "flex flex-col space-y-2 justify-center"} %div{class: "flex justify-between"} %div = form_with(url: mod_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.submit "检索", class: "rounded-md px-2 py-1 text-sm bg-black text-white cursor-pointer" = link_to "重置", mod_logs_path, class: "text-sm" %div="共 #{@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)