You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
1015 B

  1. %tr
  2. %td
  3. = image_tag custom_emoji.image.url, class: 'emojione', alt: ":#{custom_emoji.shortcode}:"
  4. %td
  5. %samp= ":#{custom_emoji.shortcode}:"
  6. %td
  7. - if custom_emoji.local?
  8. = t('admin.accounts.location.local')
  9. - else
  10. = custom_emoji.domain
  11. %td
  12. - unless custom_emoji.local?
  13. = table_link_to 'copy', t('admin.custom_emojis.copy'), copy_admin_custom_emoji_path(custom_emoji), method: :post
  14. %td
  15. - if custom_emoji.disabled?
  16. = 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') }
  17. - else
  18. = 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') }
  19. %td
  20. = 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') }