24 lines
1.1 KiB
Text
24 lines
1.1 KiB
Text
.batch-table__row{ class: [tag.requires_review? && 'batch-table__row--attention', !tag.requires_review? && !tag.trendable? && 'batch-table__row--muted'] }
|
|
%label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox
|
|
= f.check_box :tag_ids, { multiple: true, include_hidden: false }, tag.id
|
|
|
|
.batch-table__row__content.pending-account
|
|
.pending-account__header
|
|
= link_to admin_tag_path(tag.id) do
|
|
= fa_icon 'hashtag'
|
|
= tag.display_name
|
|
|
|
%br/
|
|
|
|
= t('admin.trends.tags.used_by_over_week', count: tag.history.reduce(0) { |sum, day| sum + day.accounts })
|
|
|
|
- if tag.trendable? && (rank = Trends.tags.rank(tag.id))
|
|
•
|
|
%abbr{ title: t('admin.trends.tags.current_score', score: Trends.tags.score(tag.id)) }= t('admin.trends.tags.trending_rank', rank: rank + 1)
|
|
|
|
- if tag.decaying?
|
|
•
|
|
= t('admin.trends.tags.peaked_on_and_decaying', date: l(tag.max_score_at.to_date, format: :short))
|
|
- elsif tag.requires_review?
|
|
•
|
|
= t('admin.trends.pending_review')
|