5
3
mirror of https://github.com/tildeverse/lobsters synced 2024-06-24 17:27:04 +00:00
tilde.news/app/views/login/index.html.erb

55 lines
1.5 KiB
Plaintext
Raw Normal View History

<link rel="prefetch" href="<%= path_to_javascript 'application' %>" as="script" />
<div class="box wide">
2012-12-08 19:14:33 +00:00
<div class="legend">
Login
</div>
<% if Rails.application.read_only? %>
2012-12-08 19:14:33 +00:00
<p>
The site is currently in read-only mode for maintenance.
2012-12-08 19:14:33 +00:00
</p>
<% else %>
<%= form_with url: login_path, local: true do |form| %>
2012-12-08 19:14:33 +00:00
<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? %>
2018-12-22 17:30:51 +00:00
<%= form.hidden_field :referer, value: @referer %>
<% end %>
<% end %>
2012-12-08 19:14:33 +00:00
<% end %>
</div>