Sha256: 955edebe10e9b4afb82b92f1f5688951d7c2e2a1c8f651aeb3a41be7941ab42b

Contents?: true

Size: 956 Bytes

Versions: 13

Compression:

Stored size: 956 Bytes

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.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
      = 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

13 entries across 13 versions & 1 rubygems

Version Path
censor_bear-0.1.12 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.11 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.10 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.9 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.8 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.7 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.6 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.5 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.4 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.3 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.2 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.1 app/views/censor_bear/stop_words/index.html.haml
censor_bear-0.1.0 app/views/censor_bear/stop_words/index.html.haml