about summary refs log tree commit diff
path: root/app/views/admin/tags/_tag.html.haml
blob: 91af8e4927c92a391f20be909fc1005e649100d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.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