2022-03-15 08:51:55 +02:00
|
|
|
.batch-table__row{ class: [preview_card.requires_review? && 'batch-table__row--attention', !preview_card.requires_review? && !preview_card.trendable? && 'batch-table__row--muted'] }
|
2021-11-25 14:07:38 +02:00
|
|
|
%label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox
|
|
|
|
= f.check_box :preview_card_ids, { multiple: true, include_hidden: false }, preview_card.id
|
|
|
|
|
|
|
|
.batch-table__row__content.pending-account
|
|
|
|
.pending-account__header
|
|
|
|
= link_to preview_card.title, preview_card.url
|
|
|
|
|
|
|
|
%br/
|
|
|
|
|
|
|
|
- if preview_card.provider_name.present?
|
|
|
|
= preview_card.provider_name
|
|
|
|
•
|
|
|
|
|
|
|
|
- if preview_card.language.present?
|
2022-02-09 05:15:38 +02:00
|
|
|
= standard_locale_name(preview_card.language)
|
2021-11-25 14:07:38 +02:00
|
|
|
•
|
|
|
|
|
|
|
|
= t('admin.trends.links.shared_by_over_week', count: preview_card.history.reduce(0) { |sum, day| sum + day.accounts })
|
|
|
|
|
|
|
|
- if preview_card.trendable? && (rank = Trends.links.rank(preview_card.id))
|
|
|
|
•
|
|
|
|
%abbr{ title: t('admin.trends.tags.current_score', score: Trends.links.score(preview_card.id)) }= t('admin.trends.tags.trending_rank', rank: rank + 1)
|
|
|
|
|
2021-11-26 02:12:39 +02:00
|
|
|
- if preview_card.decaying?
|
2021-11-25 14:07:38 +02:00
|
|
|
•
|
|
|
|
= t('admin.trends.tags.peaked_on_and_decaying', date: l(preview_card.max_score_at.to_date, format: :short))
|
2022-03-15 08:51:55 +02:00
|
|
|
- elsif preview_card.requires_review?
|
2021-11-25 14:07:38 +02:00
|
|
|
•
|
|
|
|
= t('admin.trends.pending_review')
|