nas/app/views/admin/custom_emojis/_custom_emoji.html.haml
2024-08-21 18:13:33 +09:00

42 lines
1.6 KiB
Text

.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)
.batch-table__row__content__text
%samp :#{custom_emoji.shortcode}:
= link_to safe_join([material_symbol('edit'), t('admin.custom_emojis.edit.label')]), edit_admin_custom_emoji_path(custom_emoji, local: params[:local], remote: params[:remote], shortcode: params[:shortcode], by_domain: params[:by_domain]), method: :get, class: 'table-action-link'
- if custom_emoji.local?
%span.information-badge= custom_emoji.category&.name || t('admin.custom_emojis.uncategorized')
- if custom_emoji.aliases_raw.present?
%br/
%span.neutral-hint= custom_emoji.aliases_raw
- if custom_emoji.license.present?
%br/
%span= custom_emoji.license
.batch-table__row__content__extra
- if custom_emoji.local?
= t('admin.accounts.location.local')
- else
= custom_emoji.domain
- if custom_emoji.local_counterpart.present?
•
= 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?
•
- if custom_emoji.visible_in_picker?
= t('admin.custom_emojis.listed')
- else
= t('admin.custom_emojis.unlisted')