Add registration_button_message

This commit is contained in:
KMY 2023-09-17 10:56:17 +09:00
parent 41b254af55
commit 39a2e1a1f6
5 changed files with 9 additions and 2 deletions

View file

@ -14,6 +14,7 @@ class Form::AdminSettings
site_terms site_terms
registrations_mode registrations_mode
closed_registrations_message closed_registrations_message
registration_button_message
timeline_preview timeline_preview
bootstrap_timeline_accounts bootstrap_timeline_accounts
theme theme

View file

@ -24,5 +24,8 @@
.fields-group .fields-group
= f.input :closed_registrations_message, as: :text, wrapper: :with_block_label, input_html: { rows: 2 } = f.input :closed_registrations_message, as: :text, wrapper: :with_block_label, input_html: { rows: 2 }
.fields-group
= f.input :registration_button_message, as: :text, kmyblue: true, hint: false, wrapper: :with_label, input_html: { rows: 2 }
.actions .actions
= f.button :button, t('generic.save_changes'), type: :submit = f.button :button, t('generic.save_changes'), type: :submit

View file

@ -40,8 +40,9 @@
.fields-group .fields-group
= f.input :agreement, as: :boolean, wrapper: :with_label, label: t('auth.privacy_policy_agreement_html', rules_path: about_more_path, privacy_policy_path: privacy_policy_path), required: true = f.input :agreement, as: :boolean, wrapper: :with_label, label: t('auth.privacy_policy_agreement_html', rules_path: about_more_path, privacy_policy_path: privacy_policy_path), required: true
%div - if Setting.registration_button_message.present?
= t('auth.cloudflare_with_registering') %div
= Setting.registration_button_message
.actions .actions
= f.button :button, @invite.present? ? t('auth.register') : sign_up_message, type: :submit = f.button :button, @invite.present? ? t('auth.register') : sign_up_message, type: :submit

View file

@ -320,6 +320,7 @@ en:
peers_api_enabled: Publish list of discovered servers in the API peers_api_enabled: Publish list of discovered servers in the API
profile_directory: Enable profile directory profile_directory: Enable profile directory
receive_other_servers_emoji_reaction: Receive stamp between other server users receive_other_servers_emoji_reaction: Receive stamp between other server users
registration_button_message: Register button message
registrations_mode: Who can sign-up registrations_mode: Who can sign-up
require_invite_text: Require a reason to join require_invite_text: Require a reason to join
show_domain_blocks: Show domain blocks show_domain_blocks: Show domain blocks

View file

@ -335,6 +335,7 @@ ja:
peers_api_enabled: 発見したサーバーのリストをAPIで公開する peers_api_enabled: 発見したサーバーのリストをAPIで公開する
profile_directory: ディレクトリを有効にする profile_directory: ディレクトリを有効にする
receive_other_servers_emoji_reaction: 他のサーバーのユーザーが他のサーバーの投稿につけたスタンプを受け入れる receive_other_servers_emoji_reaction: 他のサーバーのユーザーが他のサーバーの投稿につけたスタンプを受け入れる
registration_button_message: 新規登録ボタンの直上に表示するメッセージ
registrations_mode: 新規登録が可能な人 registrations_mode: 新規登録が可能な人
require_invite_text: 申請事由の入力を必須にする require_invite_text: 申請事由の入力を必須にする
show_domain_blocks: ドメインブロックを表示 show_domain_blocks: ドメインブロックを表示