about summary refs log tree commit diff
path: root/app/views/admin/tags/_tag.html.haml
blob: 287d28e53b6e018c9ecf1f63ad30e422ed67ef84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.batch-table__row
  - if batch_available
    %label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox
      = f.check_box :tag_ids, { multiple: true, include_hidden: false }, tag.id

  .directory__tag
    = link_to admin_tag_path(tag.id) do
      %h4
        = fa_icon 'hashtag'
        = tag.name

        %small
          = t('admin.tags.in_directory', count: tag.accounts_count)
          •
          = t('admin.tags.unique_uses_today', count: tag.history.first[:accounts])

          - if tag.trending?
            = fa_icon 'fire fw'
            = t('admin.tags.trending_right_now')

      .trends__item__current= number_to_human tag.history.first[:uses], strip_insignificant_zeros: true