about summary refs log tree commit diff
path: root/app/views/settings
diff options
context:
space:
mode:
authorprplecake <me@prplecake.com>2022-10-21 05:01:37 -0500
committerGitHub <noreply@github.com>2022-10-21 12:01:37 +0200
commitb3030187a41b242697d640f14fb1f589201c55e0 (patch)
tree42c630557d588deb41a8eb623c9804b995bf4ffd /app/views/settings
parent1e772c984b4681f6c036209b45dfa94b38b6ce83 (diff)
Use DEFAULT_FIELDS_SIZE/MAX_PROFILE_FIELDS value in settings form hint (#1870)
Use `Account::DEFAULT_FIELDS_SIZE` in the hint, which would fallback to
4 if the environment variable isn't set.
Diffstat (limited to 'app/views/settings')
-rw-r--r--app/views/settings/profiles/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/settings/profiles/show.html.haml b/app/views/settings/profiles/show.html.haml
index b84d06c27..39a508218 100644
--- a/app/views/settings/profiles/show.html.haml
+++ b/app/views/settings/profiles/show.html.haml
@@ -41,7 +41,7 @@
     .fields-row__column.fields-group.fields-row__column-6
       .input.with_block_label
         %label= t('simple_form.labels.defaults.fields')
-        %span.hint= t('simple_form.hints.defaults.fields')
+        %span.hint= t('simple_form.hints.defaults.fields', count: Account::DEFAULT_FIELDS_SIZE)
 
         = f.simple_fields_for :fields do |fields_f|
           .row