about summary refs log tree commit diff
path: root/app/views/admin/custom_emojis/_custom_emoji.html.haml
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-10-05 23:42:05 +0200
committerGitHub <noreply@github.com>2017-10-05 23:42:05 +0200
commit49cc0eb3e7d1521079e33a60216df46679082547 (patch)
treee7c7879d07d9a5a6258c14b4e2d49b8c07d5d9fa /app/views/admin/custom_emojis/_custom_emoji.html.haml
parentb9c76e2edbc372e1b472f6ba480631b79fe24722 (diff)
Improve admin UI for custom emojis, add copy/disable/enable (#5231)
Diffstat (limited to 'app/views/admin/custom_emojis/_custom_emoji.html.haml')
-rw-r--r--app/views/admin/custom_emojis/_custom_emoji.html.haml13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/admin/custom_emojis/_custom_emoji.html.haml b/app/views/admin/custom_emojis/_custom_emoji.html.haml
index ff1aa9925..53263c43f 100644
--- a/app/views/admin/custom_emojis/_custom_emoji.html.haml
+++ b/app/views/admin/custom_emojis/_custom_emoji.html.haml
@@ -4,4 +4,17 @@
   %td
     %samp= ":#{custom_emoji.shortcode}:"
   %td
+    - if custom_emoji.local?
+      = t('admin.accounts.location.local')
+    - else
+      = custom_emoji.domain
+  %td
+    - unless custom_emoji.local?
+      = table_link_to 'copy', t('admin.custom_emojis.copy'), copy_admin_custom_emoji_path(custom_emoji), method: :post
+  %td
+    - if custom_emoji.disabled?
+      = table_link_to 'power-off', t('admin.custom_emojis.enable'), enable_admin_custom_emoji_path(custom_emoji), method: :post, data: { confirm: t('admin.accounts.are_you_sure') }
+    - else
+      = table_link_to 'power-off', t('admin.custom_emojis.disable'), disable_admin_custom_emoji_path(custom_emoji), method: :post, data: { confirm: t('admin.accounts.are_you_sure') }
+  %td
     = table_link_to 'times', t('admin.custom_emojis.delete'), admin_custom_emoji_path(custom_emoji), method: :delete, data: { confirm: t('admin.accounts.are_you_sure') }