Add descriptions to trending features in admin UI (#17677)

This commit is contained in:
Eugen Rochko 2022-03-02 18:57:44 +01:00 committed by GitHub
parent e24b14cc74
commit 9b58fb1ea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 1 deletions

View File

@ -4,6 +4,10 @@
- content_for :header_tags do - content_for :header_tags do
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous' = javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
%p= t('admin.trends.links.description_html')
%hr.spacer/
= form_tag admin_trends_links_path, method: 'GET', class: 'simple_form' do = form_tag admin_trends_links_path, method: 'GET', class: 'simple_form' do
- Trends::PreviewCardFilter::KEYS.each do |key| - Trends::PreviewCardFilter::KEYS.each do |key|
= hidden_field_tag key, params[key] if params[key].present? = hidden_field_tag key, params[key] if params[key].present?

View File

@ -4,6 +4,10 @@
- content_for :header_tags do - content_for :header_tags do
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous' = javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
%p= t('admin.trends.preview_card_providers.description_html')
%hr.spacer/
.filters .filters
.filter-subset .filter-subset
%strong= t('admin.tags.review') %strong= t('admin.tags.review')
@ -17,7 +21,6 @@
= fa_icon 'chevron-left fw' = fa_icon 'chevron-left fw'
= t('admin.trends.links.title') = t('admin.trends.links.title')
%hr.spacer/ %hr.spacer/
= form_for(@form, url: batch_admin_trends_links_preview_card_providers_path) do |f| = form_for(@form, url: batch_admin_trends_links_preview_card_providers_path) do |f|

View File

@ -22,6 +22,9 @@
- if status.language.present? - if status.language.present?
= standard_locale_name(status.language) = standard_locale_name(status.language)
- if status.trendable? && !status.account.discoverable?
= t('admin.trends.statuses.not_discoverable')
- if status.trendable? && (rank = Trends.statuses.rank(status.id)) - if status.trendable? && (rank = Trends.statuses.rank(status.id))
%abbr{ title: t('admin.trends.tags.current_score', score: Trends.statuses.score(status.id)) }= t('admin.trends.tags.trending_rank', rank: rank + 1) %abbr{ title: t('admin.trends.tags.current_score', score: Trends.statuses.score(status.id)) }= t('admin.trends.tags.trending_rank', rank: rank + 1)

View File

@ -4,6 +4,10 @@
- content_for :header_tags do - content_for :header_tags do
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous' = javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
%p= t('admin.trends.statuses.description_html')
%hr.spacer/
= form_tag admin_trends_statuses_path, method: 'GET', class: 'simple_form' do = form_tag admin_trends_statuses_path, method: 'GET', class: 'simple_form' do
- Trends::StatusFilter::KEYS.each do |key| - Trends::StatusFilter::KEYS.each do |key|
= hidden_field_tag key, params[key] if params[key].present? = hidden_field_tag key, params[key] if params[key].present?

View File

@ -4,6 +4,10 @@
- content_for :header_tags do - content_for :header_tags do
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous' = javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
%p= t('admin.trends.tags.description_html')
%hr.spacer/
.filters .filters
.filter-subset .filter-subset
%strong= t('admin.tags.review') %strong= t('admin.tags.review')

View File

@ -777,6 +777,7 @@ en:
links: links:
allow: Allow link allow: Allow link
allow_provider: Allow publisher allow_provider: Allow publisher
description_html: These are links that are currently being shared a lot by accounts that your server sees posts from. It can help your users find out what's going on in the world. No links are displayed publicly until you approve the publisher. You can also allow or reject individual links.
disallow: Disallow link disallow: Disallow link
disallow_provider: Disallow publisher disallow_provider: Disallow publisher
shared_by_over_week: shared_by_over_week:
@ -788,14 +789,17 @@ en:
pending_review: Pending review pending_review: Pending review
preview_card_providers: preview_card_providers:
allowed: Links from this publisher can trend allowed: Links from this publisher can trend
description_html: These are domains from which links are often shared on your server. Links will not trend publicly unless the domain of the link is approved. Your approval (or rejection) extends to subdomains.
rejected: Links from this publisher won't trend rejected: Links from this publisher won't trend
title: Publishers title: Publishers
rejected: Rejected rejected: Rejected
statuses: statuses:
allow: Allow post allow: Allow post
allow_account: Allow author allow_account: Allow author
description_html: These are posts that your server knows about that are currently being shared and favourited a lot at the moment. It can help your new and returning users to find more people to follow. No posts are displayed publicly until you approve the author, and the author allows their account to be suggested to others. You can also allow or reject individual posts.
disallow: Disallow post disallow: Disallow post
disallow_account: Disallow author disallow_account: Disallow author
not_discoverable: Author has not opted-in to being discoverable
shared_by: shared_by:
one: Shared or favourited one time one: Shared or favourited one time
other: Shared and favourited %{friendly_count} times other: Shared and favourited %{friendly_count} times
@ -808,6 +812,7 @@ en:
tag_servers_dimension: Top servers tag_servers_dimension: Top servers
tag_servers_measure: different servers tag_servers_measure: different servers
tag_uses_measure: total uses tag_uses_measure: total uses
description_html: These are hashtags that are currently appearing in a lot of posts that your server sees. It can help your users find out what people are talking the most about at the moment. No hashtags are displayed publicly until you approve them.
listable: Can be suggested listable: Can be suggested
not_listable: Won't be suggested not_listable: Won't be suggested
not_trendable: Won't appear under trends not_trendable: Won't appear under trends