about summary refs log tree commit diff
path: root/app/views/custom_emojis/_custom_emoji.html.haml
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-20 03:37:04 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-20 04:39:27 -0500
commit69473c4fbec7775cae2badfeb16990aa0e9e85a4 (patch)
tree9929bde90cc38cf8ab3398faf29fd2c865f5f26c /app/views/custom_emojis/_custom_emoji.html.haml
parentd95c3cb550bbbc44c22bce5ef758f0c2d502bbeb (diff)
[Feature] Community-managed custom emoji
Diffstat (limited to 'app/views/custom_emojis/_custom_emoji.html.haml')
-rw-r--r--app/views/custom_emojis/_custom_emoji.html.haml36
1 files changed, 36 insertions, 0 deletions
diff --git a/app/views/custom_emojis/_custom_emoji.html.haml b/app/views/custom_emojis/_custom_emoji.html.haml
new file mode 100644
index 000000000..e124373c6
--- /dev/null
+++ b/app/views/custom_emojis/_custom_emoji.html.haml
@@ -0,0 +1,36 @@
+.batch-table__row
+  %label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox
+    = f.check_box :custom_emoji_ids, { multiple: true, include_hidden: false }, custom_emoji.id
+  .batch-table__row__content.batch-table__row__content--with-image
+    .batch-table__row__content__image
+      = custom_emoji_tag(custom_emoji, animate = current_account&.user&.setting_auto_play_gif)
+
+    .batch-table__row__content__text
+      %samp= ":#{custom_emoji.shortcode}:"
+      %p.hint.muted-hint{ title: t('admin.custom_emojis.owner') }= custom_emoji.account_id.present? ? "@#{custom_emoji.account.username}" : t('admin.custom_emojis.unclaimed') if custom_emoji.local?
+
+      - if custom_emoji.local?
+        %span.account-role.bot= custom_emoji.category&.name || t('admin.custom_emojis.uncategorized')
+
+    .batch-table__row__content__extra
+      - if custom_emoji.local?
+        = t('admin.accounts.location.local')
+      - else
+        = custom_emoji.domain
+
+        - if custom_emoji.local_counterpart.present?
+          &bull;
+          = t('admin.accounts.location.local')
+
+      %br/
+
+      - if custom_emoji.disabled?
+        = t('admin.custom_emojis.disabled')
+      - else
+        = t('admin.custom_emojis.enabled')
+      - if custom_emoji.local?
+        &bull;
+        - if custom_emoji.visible_in_picker?
+          = t('admin.custom_emojis.listed')
+        - else
+          = t('admin.custom_emojis.unlisted')