2019-03-21 01:45:41 +00:00
|
|
|
<link rel="prefetch" href="<%= path_to_javascript 'application' %>" as="script" />
|
|
|
|
|
2012-06-17 01:15:46 +00:00
|
|
|
<div class="box wide">
|
2012-12-08 19:14:33 +00:00
|
|
|
<div class="legend">
|
|
|
|
Login
|
|
|
|
</div>
|
2012-06-17 01:15:46 +00:00
|
|
|
|
2017-10-15 16:28:00 +00:00
|
|
|
<% if Rails.application.read_only? %>
|
2012-12-08 19:14:33 +00:00
|
|
|
<p>
|
2017-10-15 16:28:00 +00:00
|
|
|
The site is currently in read-only mode for maintenance.
|
2012-12-08 19:14:33 +00:00
|
|
|
</p>
|
2017-10-15 16:28:00 +00:00
|
|
|
<% else %>
|
2019-07-02 13:55:22 +00:00
|
|
|
<%= form_with url: login_path, local: true do |form| %>
|
2012-12-08 19:14:33 +00:00
|
|
|
<p>
|
2018-12-09 15:51:30 +00:00
|
|
|
<%= form.label :email, "E-mail or Username:" %>
|
|
|
|
<%= form.text_field :email, :size => 30, :autofocus => "autofocus" %>
|
2017-10-15 16:28:00 +00:00
|
|
|
<br />
|
2012-12-08 19:14:43 +00:00
|
|
|
|
2018-12-09 15:51:30 +00:00
|
|
|
<%= form.label :password, "Password:" %>
|
|
|
|
<%= form.password_field :password, :size => 30 %>
|
2017-10-15 16:28:00 +00:00
|
|
|
<br />
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2018-12-09 15:51:30 +00:00
|
|
|
<%= form.submit "Login" %>
|
2017-10-15 16:28:00 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Forgot your password or deleted your account?
|
|
|
|
<%= link_to "Reset your password", forgot_password_path %>.
|
|
|
|
</p>
|
|
|
|
|
2018-03-21 19:25:12 +00:00
|
|
|
<% if Rails.application.open_signups? %>
|
|
|
|
<p>
|
|
|
|
Not a user yet? <a href="/invitations/open">Sign up here</a>.
|
|
|
|
</p>
|
2022-02-15 15:45:49 +00:00
|
|
|
<% elsif Rails.application.allow_invitation_requests? %>
|
|
|
|
Not a user yet? <a href="/invitations/request">Request an invite</a>.
|
|
|
|
<% end %>
|
2017-10-15 16:28:00 +00:00
|
|
|
<% else %>
|
2018-03-21 19:25:12 +00:00
|
|
|
<p>
|
2022-02-15 15:45:49 +00:00
|
|
|
Not a user yet?
|
|
|
|
Read about <a href="/about#invitations">how invitations work</a> and see if you know
|
|
|
|
<a href="/u">a current user</a> of the site.
|
|
|
|
The <a href="/chat">chat room</a> does not require an invitation.
|
2018-03-21 19:25:12 +00:00
|
|
|
</p>
|
2017-10-15 16:28:00 +00:00
|
|
|
<% end %>
|
2014-08-08 15:31:06 +00:00
|
|
|
|
2017-10-15 16:28:00 +00:00
|
|
|
<% if @referer.present? %>
|
2018-12-22 17:30:51 +00:00
|
|
|
<%= form.hidden_field :referer, value: @referer %>
|
2017-10-15 16:28:00 +00:00
|
|
|
<% end %>
|
2014-08-08 15:31:06 +00:00
|
|
|
<% end %>
|
2012-12-08 19:14:33 +00:00
|
|
|
<% end %>
|
2012-06-17 01:15:46 +00:00
|
|
|
</div>
|