_custom_emoji.html.haml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. .batch-table__row
  2. %label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox
  3. = f.check_box :custom_emoji_ids, { multiple: true, include_hidden: false }, custom_emoji.id
  4. .batch-table__row__content.batch-table__row__content--with-image
  5. .batch-table__row__content__image
  6. = custom_emoji_tag(custom_emoji)
  7. .batch-table__row__content__text
  8. %samp :#{custom_emoji.shortcode}:
  9. - if custom_emoji.local?
  10. %span.information-badge= custom_emoji.category&.name || t('admin.custom_emojis.uncategorized')
  11. .batch-table__row__content__extra
  12. - if custom_emoji.local?
  13. = t('admin.accounts.location.local')
  14. - else
  15. = custom_emoji.domain
  16. - if custom_emoji.local_counterpart.present?
  17. •
  18. = t('admin.accounts.location.local')
  19. %br/
  20. - if custom_emoji.disabled?
  21. = t('admin.custom_emojis.disabled')
  22. - else
  23. = t('admin.custom_emojis.enabled')
  24. - if custom_emoji.local?
  25. •
  26. - if custom_emoji.visible_in_picker?
  27. = t('admin.custom_emojis.listed')
  28. - else
  29. = t('admin.custom_emojis.unlisted')