lib/views/content/search.haml in redis_monitor-0.0.5 vs lib/views/content/search.haml in redis_monitor-0.0.6
- old
+ new
@@ -5,13 +5,24 @@
%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
\ No newline at end of file