Sha256: b20849a84dd1eaf5908293fb7b6f02c313bcf9061a8ba2db38d9c49090f32fc2

Contents?: true

Size: 647 Bytes

Versions: 1

Compression:

Stored size: 647 Bytes

Contents

= haml 'content/_search_form'.to_sym, locals: {search_term: params[:key]}

%table.table.table-striped
  %thead
    %tr
      %th
        Key
      %th
        Value
      - if authorized_for?(:remove_content)
        %th
          Actions

  %tbody
    - results.each do |result|
      %tr
        %td
          = result[:key]
        %td
          = result[:value]
        - if authorized_for?(:remove_content)
          %td
            %form{action: '/content/delete', method: 'post'}
              %input{type: 'hidden', name: 'key', value: result[:key]}
              %button.btn.btn-danger
                Delete

= bootstrap_paginate results

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redis_monitor-0.0.6 lib/views/content/search.haml