mirror of
https://github.com/tildeverse/lobsters
synced 2024-06-28 11:07:04 +00:00
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
<link rel="prefetch" href="<%= path_to_javascript 'application' %>" as="script" />
|
|
|
|
<div class="box wide">
|
|
<div class="legend">
|
|
Login
|
|
</div>
|
|
|
|
<% if Rails.application.read_only? %>
|
|
<p>
|
|
The site is currently in read-only mode for maintenance.
|
|
</p>
|
|
<% else %>
|
|
<%= form_with url: login_path, local: true do |form| %>
|
|
<p>
|
|
<%= form.label :email, "E-mail or Username:" %>
|
|
<%= form.text_field :email, :size => 30, :autofocus => "autofocus" %>
|
|
<br />
|
|
|
|
<%= form.label :password, "Password:" %>
|
|
<%= form.password_field :password, :size => 30 %>
|
|
<br />
|
|
</p>
|
|
|
|
<p>
|
|
<%= form.submit "Login" %>
|
|
</p>
|
|
|
|
<p>
|
|
Forgot your password or deleted your account?
|
|
<%= link_to "Reset your password", forgot_password_path %>.
|
|
</p>
|
|
|
|
<% if Rails.application.open_signups? %>
|
|
<p>
|
|
Not a user yet? <a href="/invitations/open">Sign up here</a>.
|
|
</p>
|
|
<% elsif Rails.application.allow_invitation_requests? %>
|
|
Not a user yet? <a href="/invitations/request">Request an invite</a>.
|
|
<% end %>
|
|
<% else %>
|
|
<p>
|
|
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.
|
|
</p>
|
|
<% end %>
|
|
|
|
<% if @referer.present? %>
|
|
<%= form.hidden_field :referer, value: @referer %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|