Sha256: 63f38b74934c48ed36facd0cccb8539d9c00b508fc0fc8593f9c74428a6b038a

Contents?: true

Size: 653 Bytes

Versions: 4

Compression:

Stored size: 653 Bytes

Contents

= render 'search_form', search_term: params[:key]

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

  %tbody
    - @results.each do |result|
      %tr
        %td
          = result[:key]
        %td
          = result[:value]
        - if Authorization.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

4 entries across 4 versions & 1 rubygems

Version Path
redis_monitor-0.3.3 lib/engine/app/views/content/search.haml
redis_monitor-0.3.2 lib/engine/app/views/content/search.haml
redis_monitor-0.3 lib/engine/app/views/content/search.haml
redis_monitor-0.2.1 lib/engine/app/views/content/search.haml