about summary refs log tree commit diff
path: root/app/views/admin/account_moderation_notes
diff options
context:
space:
mode:
authornullkal <nullkal@nil.nu>2017-10-08 03:26:43 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-10-07 20:26:43 +0200
commit633426b2616e8559acfa76f4294a51afcf434fc2 (patch)
tree38759fbbd11bb3b40bc29e1a0f8ce048d15c7ce3 /app/views/admin/account_moderation_notes
parentf486ef2666dacbcb6fcd26e371bb5e945369dcfe (diff)
Add moderation note (#5240)
* Add moderation note

* Add frozen_string_literal

* Make rspec pass
Diffstat (limited to 'app/views/admin/account_moderation_notes')
-rw-r--r--app/views/admin/account_moderation_notes/_account_moderation_note.html.haml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/admin/account_moderation_notes/_account_moderation_note.html.haml b/app/views/admin/account_moderation_notes/_account_moderation_note.html.haml
new file mode 100644
index 000000000..4651630e9
--- /dev/null
+++ b/app/views/admin/account_moderation_notes/_account_moderation_note.html.haml
@@ -0,0 +1,10 @@
+%tr
+  %td
+    = simple_format(h(account_moderation_note.content))
+  %td
+    = account_moderation_note.account.acct
+  %td
+    %time.formatted{ datetime: account_moderation_note.created_at.iso8601, title: l(account_moderation_note.created_at) }
+      = l account_moderation_note.created_at
+  %td
+    = link_to t('admin.account_moderation_notes.delete'), admin_account_moderation_note_path(account_moderation_note), method: :delete