about summary refs log tree commit diff
path: root/app/views/custom_emojis/_custom_emoji.html.haml
blob: e124373c67c257b289bc71248f962fff5ca12fbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.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, animate = current_account&.user&.setting_auto_play_gif)

    .batch-table__row__content__text
      %samp= ":#{custom_emoji.shortcode}:"
      %p.hint.muted-hint{ title: t('admin.custom_emojis.owner') }= custom_emoji.account_id.present? ? "@#{custom_emoji.account.username}" : t('admin.custom_emojis.unclaimed') if custom_emoji.local?

      - if custom_emoji.local?
        %span.account-role.bot= custom_emoji.category&.name || t('admin.custom_emojis.uncategorized')

    .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')