2022-03-15 06:51:55 +00: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 12:07:38 +00: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
|
2024-08-09 13:05:34 +00:00
|
|
|
= link_to preview_card.title, url_for_preview_card(preview_card), lang: preview_card.language
|
2021-11-25 12:07:38 +00:00
|
|
|
|
|
|
|
%br/
|
|
|
|
|
|
|
|
- if preview_card.provider_name.present?
|
2024-08-09 13:05:34 +00:00
|
|
|
%span{ lang: preview_card.language }= preview_card.provider_name
|
2023-06-02 17:58:18 +00:00
|
|
|
·
|
2021-11-25 12:07:38 +00:00
|
|
|
|
|
|
|
- if preview_card.language.present?
|
2022-02-09 03:15:38 +00:00
|
|
|
= standard_locale_name(preview_card.language)
|
2023-06-02 17:58:18 +00:00
|
|
|
·
|
2021-11-25 12:07:38 +00:00
|
|
|
|
|
|
|
= t('admin.trends.links.shared_by_over_week', count: preview_card.history.reduce(0) { |sum, day| sum + day.accounts })
|
|
|
|
|
2022-10-08 14:45:40 +00:00
|
|
|
- if preview_card.trend.allowed?
|
2023-06-02 17:58:18 +00:00
|
|
|
·
|
2022-10-08 14:45:40 +00:00
|
|
|
%abbr{ title: t('admin.trends.tags.current_score', score: preview_card.trend.score) }= t('admin.trends.tags.trending_rank', rank: preview_card.trend.rank)
|
2021-11-25 12:07:38 +00:00
|
|
|
|
2021-11-26 00:12:39 +00:00
|
|
|
- if preview_card.decaying?
|
2023-06-02 17:58:18 +00:00
|
|
|
·
|
2021-11-25 12:07:38 +00:00
|
|
|
= t('admin.trends.tags.peaked_on_and_decaying', date: l(preview_card.max_score_at.to_date, format: :short))
|
2022-03-15 06:51:55 +00:00
|
|
|
- elsif preview_card.requires_review?
|
2023-06-02 17:58:18 +00:00
|
|
|
·
|
2021-11-25 12:07:38 +00:00
|
|
|
= t('admin.trends.pending_review')
|