about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-04-23 04:39:21 +0200
committerGitHub <noreply@github.com>2019-04-23 04:39:21 +0200
commit041fb0e840d85a6e9be2ff97fb80c3bf36f94644 (patch)
tree65dba956450938d356aca4a3e37b97aff3adf484
parentf99bfb9496482c7f3734789b3c16fc19e95e0c75 (diff)
Fix sign up button not saying sign up when invite is used (#10623)
Fix #10616
-rw-r--r--app/views/auth/registrations/new.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/auth/registrations/new.html.haml b/app/views/auth/registrations/new.html.haml
index bd6e3a13f..b4a7cced5 100644
--- a/app/views/auth/registrations/new.html.haml
+++ b/app/views/auth/registrations/new.html.haml
@@ -36,6 +36,6 @@
     = f.input :agreement, as: :boolean, wrapper: :with_label, label: t('auth.checkbox_agreement_html', rules_path: about_more_path, terms_path: terms_path)
 
   .actions
-    = f.button :button, sign_up_message, type: :submit
+    = f.button :button, @invite.present? ? t('auth.register') : sign_up_message, type: :submit
 
 .form-footer= render 'auth/shared/links'