Sha256: 78a4d799c99bf8bbb004077ad4d0731c7a21679da858216fe750399d856fff1f

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 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 '批量导入', "#", 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

5 entries across 5 versions & 1 rubygems

Version Path
censor_bear-0.1.18 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.17 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.15 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.14 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.13 app/views/censor_bear/stop_words/index.html.haml