Skip to content

Commit

Permalink
Add registration_button_message
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Sep 17, 2023
1 parent 41b254a commit 39a2e1a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/models/form/admin_settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Form::AdminSettings
site_terms
registrations_mode
closed_registrations_message
registration_button_message
timeline_preview
bootstrap_timeline_accounts
theme
Expand Down
3 changes: 3 additions & 0 deletions app/views/admin/settings/registrations/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@
.fields-group
= 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
= f.button :button, t('generic.save_changes'), type: :submit
5 changes: 3 additions & 2 deletions app/views/auth/registrations/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
.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

%div
= t('auth.cloudflare_with_registering')
- if Setting.registration_button_message.present?
%div
= Setting.registration_button_message

.actions
= f.button :button, @invite.present? ? t('auth.register') : sign_up_message, type: :submit
Expand Down
1 change: 1 addition & 0 deletions config/locales/simple_form.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ en:
peers_api_enabled: Publish list of discovered servers in the API
profile_directory: Enable profile directory
receive_other_servers_emoji_reaction: Receive stamp between other server users
registration_button_message: Register button message
registrations_mode: Who can sign-up
require_invite_text: Require a reason to join
show_domain_blocks: Show domain blocks
Expand Down
1 change: 1 addition & 0 deletions config/locales/simple_form.ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ ja:
peers_api_enabled: 発見したサーバーのリストをAPIで公開する
profile_directory: ディレクトリを有効にする
receive_other_servers_emoji_reaction: 他のサーバーのユーザーが他のサーバーの投稿につけたスタンプを受け入れる
registration_button_message: 新規登録ボタンの直上に表示するメッセージ
registrations_mode: 新規登録が可能な人
require_invite_text: 申請事由の入力を必須にする
show_domain_blocks: ドメインブロックを表示
Expand Down

0 comments on commit 39a2e1a

Please sign in to comment.