Sha256: 505889acecfbe759c9f3eb73ed3121b1cf523b64ef5c528006027764fe8a31c7
Contents?: true
Size: 1.25 KB
Versions: 11
Compression:
Stored size: 1.25 KB
Contents
%div{class: "flex flex-col space-y-2 justify-center"} %div{class: "flex justify-between"} %div = form_with(url: stop_words_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 :filter, options_for_select([%w[长度为1 size_one], %w[长度为2 size_two], %w[长度为3 size_three]], params[:filter]), {include_blank: "-- 按敏感词长度筛选 --"}, 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 "重置", stop_words_path, class: "text-sm" %div %span{class: "text-sm text-gray-600"}="共 #{@pagy.count} 条" = link_to '批量导入', import_stop_words_path, class: "text-sm" = link_to '新增', new_stop_word_path, class: "rounded-md px-2 py-1 text-sm bg-black text-white cursor-pointer" %div - if @stop_words.blank? %div{class: "flex justify-center text-gray-500 p-8 border rounded-md"} 空空如也 - else - @stop_words.each do |stop_word| = render stop_word %div{class: "flex justify-center"} = raw pagy_nav(@pagy)
Version data entries
11 entries across 11 versions & 1 rubygems