Sha256: 44214e74be5172476ae760563e1055bcbc5df4cd00478e99d67682073252f6db
Contents?: true
Size: 1.81 KB
Versions: 12
Compression:
Stored size: 1.81 KB
Contents
%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{class: "flex items-center space-x-2"} %div{class: "text-sm text-gray-600"}="共 #{@pagy.count} 条" %div{class: "bg-gray-200 rounded-full px-3 py-1 text-xs #{params[:state].blank? && params[:filter].blank? ? 'font-bold' : ''}"} = link_to "待处理", request.params.merge(state: "", filter: "") %div{class: "bg-gray-200 rounded-full px-3 py-1 text-xs #{params[:state] == 'rejected' ? 'font-bold' : ''}"} = link_to "被驳回", request.params.merge(state: "rejected", filter: "") %div{class: "bg-gray-200 rounded-full px-3 py-1 text-xs #{params[:state] == 'passed' ? 'font-bold' : ''}"} = link_to "通过", request.params.merge(state: "passed", filter: "") %div{class: "bg-gray-200 rounded-full px-3 py-1 text-xs #{params[:state] == 'suspended' ? 'font-bold' : ''}"} = link_to "暂缓处理", request.params.merge(state: "suspended", filter: "") %div{class: "bg-gray-200 rounded-full px-3 py-1 text-xs #{params[:filter] == "all" ? 'font-bold' : ''}"} = link_to "全部", request.params.merge(filter: "all", state: "") %div - if @mod_logs.blank? %div{class: "flex justify-center text-gray-500 p-8 border rounded-md"} 空空如也 - else - @mod_logs.each do |log| = render log %div{class: "flex justify-center"} = raw pagy_nav(@pagy)
Version data entries
12 entries across 12 versions & 1 rubygems