From: Eugen Rochko Date: Tue, 20 Apr 2021 11:57:45 +0000 (+0200) Subject: Add "recommended" label to activity/peers API toggles in admin UI (#16081) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=23b102f66175f595f16693aaf61fa3d08cb8f799;p=mastodon.git Add "recommended" label to activity/peers API toggles in admin UI (#16081) --- diff --git a/app/views/admin/settings/edit.html.haml b/app/views/admin/settings/edit.html.haml index 0e705f205..7783dbfeb 100644 --- a/app/views/admin/settings/edit.html.haml +++ b/app/views/admin/settings/edit.html.haml @@ -72,10 +72,10 @@ - unless whitelist_mode? .fields-group - = f.input :activity_api_enabled, as: :boolean, wrapper: :with_label, label: t('admin.settings.activity_api_enabled.title'), hint: t('admin.settings.activity_api_enabled.desc_html') + = f.input :activity_api_enabled, as: :boolean, wrapper: :with_label, label: t('admin.settings.activity_api_enabled.title'), hint: t('admin.settings.activity_api_enabled.desc_html'), recommended: true .fields-group - = f.input :peers_api_enabled, as: :boolean, wrapper: :with_label, label: t('admin.settings.peers_api_enabled.title'), hint: t('admin.settings.peers_api_enabled.desc_html') + = f.input :peers_api_enabled, as: :boolean, wrapper: :with_label, label: t('admin.settings.peers_api_enabled.title'), hint: t('admin.settings.peers_api_enabled.desc_html'), recommended: true .fields-group = f.input :preview_sensitive_media, as: :boolean, wrapper: :with_label, label: t('admin.settings.preview_sensitive_media.title'), hint: t('admin.settings.preview_sensitive_media.desc_html') diff --git a/config/locales/en.yml b/config/locales/en.yml index 88acf3164..3f3adc158 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -562,7 +562,7 @@ en: settings: activity_api_enabled: desc_html: Counts of locally posted statuses, active users, and new registrations in weekly buckets - title: Publish aggregate statistics about user activity + title: Publish aggregate statistics about user activity in the API bootstrap_timeline_accounts: desc_html: Separate multiple usernames by comma. Only local and unlocked accounts will work. Default when empty is all local admins. title: Default follows for new users @@ -593,7 +593,7 @@ en: title: Mascot image peers_api_enabled: desc_html: Domain names this server has encountered in the fediverse - title: Publish list of discovered servers + title: Publish list of discovered servers in the API preview_sensitive_media: desc_html: Link previews on other websites will display a thumbnail even if the media is marked as sensitive title: Show sensitive media in OpenGraph previews