Browse Source

add login form to landing page if regs are closed

closed-social-glitch-2
Ondřej Hruška 7 years ago
parent
commit
ce3e0faf4d
No known key found for this signature in database GPG Key ID: 2C5FD5035250423D
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      app/views/about/show.html.haml

+ 7
- 0
app/views/about/show.html.haml View File

@ -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

Loading…
Cancel
Save