about summary refs log tree commit diff
path: root/app/views/domain_blocks
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-30 16:35:53 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-30 16:36:24 -0500
commitccb84572d6300c0ed69a59653b98ced89582452a (patch)
tree23609bf14d544836f7ef5177f70a52719ae53592 /app/views/domain_blocks
parent3f327a3ea75e0c635b88418e5b92454873815f9d (diff)
add a domain policy viewer at `/policies`
Diffstat (limited to 'app/views/domain_blocks')
-rw-r--r--app/views/domain_blocks/_domain_block.html.haml14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/domain_blocks/_domain_block.html.haml b/app/views/domain_blocks/_domain_block.html.haml
new file mode 100644
index 000000000..fae707c82
--- /dev/null
+++ b/app/views/domain_blocks/_domain_block.html.haml
@@ -0,0 +1,14 @@
+%tr
+  %td
+    %samp= domain_block.domain
+  %td= domain_block.severity.gsub('_', ' ').capitalize
+  %td
+    %ul
+      -if domain_block.reject_media?
+        %li= "Rejecting media"
+      -if domain_block.force_sensitive?
+        %li= "Media marked sensitive"
+      -if domain_block.reject_reports?
+        %li= "Rejecting reports"
+  %td= "None"
+