]> cat aescling's git repositories - mastodon.git/commitdiff
Fix duplicate HTML ids in /about (#11803)
authorThibG <thib@sitedethib.com>
Tue, 10 Sep 2019 18:55:23 +0000 (20:55 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 10 Sep 2019 18:55:23 +0000 (20:55 +0200)
Fixes #11329

app/views/about/_login.html.haml
app/views/about/_registration.html.haml

index d286f0d3c6e2411c81759802373e7cc9fceff6e3..fa58f04d7369ae0d67cd31be2bc2c1878dfb9235 100644 (file)
@@ -1,4 +1,4 @@
-= simple_form_for(new_user, url: user_session_path) do |f|
+= simple_form_for(new_user, url: user_session_path, namespace: 'login') do |f|
   .fields-group
     - if use_seamless_external_login?
       = f.input :email, placeholder: t('simple_form.labels.defaults.username_or_email'), input_html: { 'aria-label' => t('simple_form.labels.defaults.username_or_email') }, hint: false
index ff32ec8c46caec1f8bb8cf6c541daea6de49c7b3..1333c68c4f1c7aaa1eb6ea07b536f4cbf94d79ef 100644 (file)
@@ -1,4 +1,4 @@
-= simple_form_for(new_user, url: user_registration_path) do |f|
+= simple_form_for(new_user, url: user_registration_path, namespace: 'registration') do |f|
   .simple_form__overlay-area
     %p.lead= t('about.federation_hint_html', instance: content_tag(:strong, site_hostname))