2017-09-19 11:52:38 +10:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= image_tag custom_emoji.image.url, class: 'emojione', alt: ":#{custom_emoji.shortcode}:"
|
|
|
|
%td
|
|
|
|
%samp= ":#{custom_emoji.shortcode}:"
|
2017-10-06 08:42:05 +11:00
|
|
|
%td
|
|
|
|
- if custom_emoji.local?
|
|
|
|
= t('admin.accounts.location.local')
|
|
|
|
- else
|
|
|
|
= custom_emoji.domain
|
|
|
|
%td
|
2017-10-28 01:11:30 +11:00
|
|
|
- if custom_emoji.local?
|
|
|
|
- if custom_emoji.visible_in_picker
|
|
|
|
= table_link_to 'eye', t('admin.custom_emojis.listed'), admin_custom_emoji_path(custom_emoji, custom_emoji: { visible_in_picker: false }), method: :patch
|
|
|
|
- else
|
|
|
|
= table_link_to 'eye-slash', t('admin.custom_emojis.unlisted'), admin_custom_emoji_path(custom_emoji, custom_emoji: { visible_in_picker: true }), method: :patch
|
|
|
|
- else
|
2017-10-14 23:40:10 +11:00
|
|
|
= table_link_to 'copy', t('admin.custom_emojis.copy'), copy_admin_custom_emoji_path(custom_emoji, page: params[:page]), method: :post
|
2017-10-06 08:42:05 +11:00
|
|
|
%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') }
|
2017-09-19 11:52:38 +10:00
|
|
|
%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') }
|