about summary refs log tree commit diff
path: root/app/views/admin/domain_blocks/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/domain_blocks/index.html.haml')
-rw-r--r--app/views/admin/domain_blocks/index.html.haml13
1 files changed, 2 insertions, 11 deletions
diff --git a/app/views/admin/domain_blocks/index.html.haml b/app/views/admin/domain_blocks/index.html.haml
index bdef4294e..5ae9fec53 100644
--- a/app/views/admin/domain_blocks/index.html.haml
+++ b/app/views/admin/domain_blocks/index.html.haml
@@ -9,16 +9,7 @@
       %th= t('admin.domain_blocks.reject_media')
       %th
   %tbody
-    - @blocks.each do |block|
-      %tr
-        %td
-          %samp= block.domain
-        %td= t("admin.domain_blocks.severities.#{block.severity}")
-        %td
-          - if block.reject_media? || block.suspend?
-            %i.fa.fa-check
-        %td
-          = table_link_to 'undo', t('admin.domain_blocks.undo'), admin_domain_block_path(block)
+    = render @domain_blocks
 
-= paginate @blocks
+= paginate @domain_blocks
 = link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path, class: 'button'