Sha256: c9dd3ea572bf29e930d1e78efa6f937cbcb905204ecaae0df28a32e1ddb43462

Contents?: true

Size: 663 Bytes

Versions: 1

Compression:

Stored size: 663 Bytes

Contents

= render 'search_form', locals: {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

1 entries across 1 versions & 1 rubygems

Version Path
redis_monitor-0.2 lib/engine/app/views/content/search.haml