2017-09-19 03:52:38 +02:00
|
|
|
%tr
|
|
|
|
%td
|
2017-11-07 14:49:32 +01:00
|
|
|
= custom_emoji_tag(custom_emoji)
|
2017-09-19 03:52:38 +02:00
|
|
|
%td
|
|
|
|
%samp= ":#{custom_emoji.shortcode}:"
|
2017-10-05 23:42:05 +02:00
|
|
|
%td
|
|
|
|
- if custom_emoji.local?
|
|
|
|
= t('admin.accounts.location.local')
|
|
|
|
- else
|
2017-12-13 13:28:31 +01:00
|
|
|
= link_to custom_emoji.domain, admin_custom_emojis_path(by_domain: custom_emoji.domain)
|
2017-10-05 23:42:05 +02:00
|
|
|
%td
|
2017-10-27 16:11:30 +02:00
|
|
|
- if custom_emoji.local?
|
|
|
|
- if custom_emoji.visible_in_picker
|
2017-12-30 02:43:43 +01:00
|
|
|
= table_link_to 'eye', t('admin.custom_emojis.listed'), admin_custom_emoji_path(custom_emoji, custom_emoji: { visible_in_picker: false }, page: params[:page], **@filter_params), method: :patch
|
2017-10-27 16:11:30 +02:00
|
|
|
- else
|
2017-12-30 02:43:43 +01:00
|
|
|
= table_link_to 'eye-slash', t('admin.custom_emojis.unlisted'), admin_custom_emoji_path(custom_emoji, custom_emoji: { visible_in_picker: true }, page: params[:page], **@filter_params), method: :patch
|
2017-10-27 16:11:30 +02:00
|
|
|
- else
|
2017-11-07 14:49:32 +01:00
|
|
|
- if custom_emoji.local_counterpart.present?
|
2017-12-30 02:43:43 +01:00
|
|
|
= link_to safe_join([custom_emoji_tag(custom_emoji.local_counterpart), t('admin.custom_emojis.overwrite')]), copy_admin_custom_emoji_path(custom_emoji, page: params[:page], **@filter_params), method: :post, class: 'table-action-link'
|
2017-11-07 14:49:32 +01:00
|
|
|
- else
|
2017-12-30 02:43:43 +01:00
|
|
|
= table_link_to 'copy', t('admin.custom_emojis.copy'), copy_admin_custom_emoji_path(custom_emoji, page: params[:page], **@filter_params), method: :post
|
2017-10-05 23:42:05 +02:00
|
|
|
%td
|
|
|
|
- if custom_emoji.disabled?
|
2017-12-30 02:43:43 +01:00
|
|
|
= table_link_to 'power-off', t('admin.custom_emojis.enable'), enable_admin_custom_emoji_path(custom_emoji, page: params[:page], **@filter_params), method: :post, data: { confirm: t('admin.accounts.are_you_sure') }
|
2017-10-05 23:42:05 +02:00
|
|
|
- else
|
2017-12-30 02:43:43 +01:00
|
|
|
= table_link_to 'power-off', t('admin.custom_emojis.disable'), disable_admin_custom_emoji_path(custom_emoji, page: params[:page], **@filter_params), method: :post, data: { confirm: t('admin.accounts.are_you_sure') }
|
2017-09-19 03:52:38 +02:00
|
|
|
%td
|
2017-12-30 02:43:43 +01:00
|
|
|
= table_link_to 'times', t('admin.custom_emojis.delete'), admin_custom_emoji_path(custom_emoji, page: params[:page], **@filter_params), method: :delete, data: { confirm: t('admin.accounts.are_you_sure') }
|