Add setting to hide moderator badge
This commit is contained in:
parent
0124a17cf1
commit
dc76262f26
6 changed files with 13 additions and 1 deletions
|
@ -70,7 +70,7 @@ module AccountsHelper
|
||||||
content_tag(:div, t('admin.accounts.roles.user'), class: 'account-role')
|
content_tag(:div, t('admin.accounts.roles.user'), class: 'account-role')
|
||||||
elsif account.user_admin?
|
elsif account.user_admin?
|
||||||
content_tag(:div, t('accounts.roles.admin'), class: 'account-role admin')
|
content_tag(:div, t('accounts.roles.admin'), class: 'account-role admin')
|
||||||
elsif account.user_moderator?
|
elsif Setting.show_moderator_badge && account.user_moderator?
|
||||||
content_tag(:div, t('accounts.roles.moderator'), class: 'account-role moderator')
|
content_tag(:div, t('accounts.roles.moderator'), class: 'account-role moderator')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -16,6 +16,7 @@ class Form::AdminSettings
|
||||||
open_deletion
|
open_deletion
|
||||||
timeline_preview
|
timeline_preview
|
||||||
show_staff_badge
|
show_staff_badge
|
||||||
|
show_moderator_badge
|
||||||
bootstrap_timeline_accounts
|
bootstrap_timeline_accounts
|
||||||
theme
|
theme
|
||||||
min_invite_role
|
min_invite_role
|
||||||
|
@ -40,6 +41,7 @@ class Form::AdminSettings
|
||||||
open_deletion
|
open_deletion
|
||||||
timeline_preview
|
timeline_preview
|
||||||
show_staff_badge
|
show_staff_badge
|
||||||
|
show_moderator_badge
|
||||||
activity_api_enabled
|
activity_api_enabled
|
||||||
peers_api_enabled
|
peers_api_enabled
|
||||||
show_known_fediverse_at_about_page
|
show_known_fediverse_at_about_page
|
||||||
|
|
|
@ -64,6 +64,9 @@
|
||||||
.fields-group
|
.fields-group
|
||||||
= f.input :show_staff_badge, as: :boolean, wrapper: :with_label, label: t('admin.settings.show_staff_badge.title'), hint: t('admin.settings.show_staff_badge.desc_html')
|
= f.input :show_staff_badge, as: :boolean, wrapper: :with_label, label: t('admin.settings.show_staff_badge.title'), hint: t('admin.settings.show_staff_badge.desc_html')
|
||||||
|
|
||||||
|
.fields-group
|
||||||
|
= f.input :show_moderator_badge, as: :boolean, wrapper: :with_label, label: t('admin.settings.show_moderator_badge.title'), hint: t('admin.settings.show_moderator_badge.desc_html'), fedibird_features: true
|
||||||
|
|
||||||
.fields-group
|
.fields-group
|
||||||
= f.input :open_deletion, as: :boolean, wrapper: :with_label, label: t('admin.settings.registrations.deletion.title'), hint: t('admin.settings.registrations.deletion.desc_html')
|
= f.input :open_deletion, as: :boolean, wrapper: :with_label, label: t('admin.settings.registrations.deletion.title'), hint: t('admin.settings.registrations.deletion.desc_html')
|
||||||
|
|
||||||
|
|
|
@ -666,6 +666,9 @@ en:
|
||||||
show_known_fediverse_at_about_page:
|
show_known_fediverse_at_about_page:
|
||||||
desc_html: When disabled, restricts the public timeline linked from the landing page to showing only local content
|
desc_html: When disabled, restricts the public timeline linked from the landing page to showing only local content
|
||||||
title: Include federated content on unauthenticated public timeline page
|
title: Include federated content on unauthenticated public timeline page
|
||||||
|
show_moderator_badge:
|
||||||
|
desc_html: Show a moderator badge on a user page
|
||||||
|
title: Show moderator badge
|
||||||
show_staff_badge:
|
show_staff_badge:
|
||||||
desc_html: Show a staff badge on a user page
|
desc_html: Show a staff badge on a user page
|
||||||
title: Show staff badge
|
title: Show staff badge
|
||||||
|
|
|
@ -645,6 +645,9 @@ ja:
|
||||||
show_known_fediverse_at_about_page:
|
show_known_fediverse_at_about_page:
|
||||||
desc_html: チェックを外すと、ランディングページからリンクされた公開タイムラインにローカルの公開投稿のみ表示します。
|
desc_html: チェックを外すと、ランディングページからリンクされた公開タイムラインにローカルの公開投稿のみ表示します。
|
||||||
title: 公開タイムラインに連合先のコンテンツも表示する
|
title: 公開タイムラインに連合先のコンテンツも表示する
|
||||||
|
show_moderator_badge:
|
||||||
|
desc_html: ユーザーページにモデレーターのバッジを表示します
|
||||||
|
title: モデレーターバッジを表示する
|
||||||
show_staff_badge:
|
show_staff_badge:
|
||||||
desc_html: ユーザーページにスタッフのバッジを表示します
|
desc_html: ユーザーページにスタッフのバッジを表示します
|
||||||
title: スタッフバッジを表示する
|
title: スタッフバッジを表示する
|
||||||
|
|
|
@ -16,6 +16,7 @@ defaults: &defaults
|
||||||
min_invite_role: 'admin'
|
min_invite_role: 'admin'
|
||||||
timeline_preview: true
|
timeline_preview: true
|
||||||
show_staff_badge: true
|
show_staff_badge: true
|
||||||
|
show_moderator_badge: true
|
||||||
default_sensitive: false
|
default_sensitive: false
|
||||||
hide_network: false
|
hide_network: false
|
||||||
unfollow_modal: false
|
unfollow_modal: false
|
||||||
|
|
Loading…
Reference in a new issue