diff options
author | beatrix <beatrix.bitrot@gmail.com> | 2017-09-30 15:01:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-30 15:01:32 -0400 |
commit | 5dec67d96441f9ec41cad82474ca6364f5fd4160 (patch) | |
tree | 05e68aa5bfb0e912c6d714a345c3e6f5b05b1469 /app | |
parent | c027a7bd4d7b5af21f4b201d656f7251fa3606a1 (diff) | |
parent | ce3e0faf4d262ce28d4f0aed711d6bedb2c7db5c (diff) |
Merge pull request #159 from glitch-soc/closed-instance-landing-page-login-form
add login form to landing page if regs are closed
Diffstat (limited to 'app')
-rw-r--r-- | app/views/about/show.html.haml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/about/show.html.haml b/app/views/about/show.html.haml index 737dbbcef..c0fa944ae 100644 --- a/app/views/about/show.html.haml +++ b/app/views/about/show.html.haml @@ -47,6 +47,13 @@ %p= t('about.closed_registrations') - else = @instance_presenter.closed_registrations_message.html_safe + + = simple_form_for(:user, html: { style: 'margin-left: -20px' }, url: session_path(:user)) do |f| + = f.input :email, autofocus: true, placeholder: t('simple_form.labels.defaults.email'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.email') } + = f.input :password, placeholder: t('simple_form.labels.defaults.password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.password'), :autocomplete => 'off' } + + .actions + = f.button :button, t('auth.login'), type: :submit = link_to t('about.find_another_instance'), 'https://joinmastodon.org/', class: 'button button-alternative button--block' .about-short |