tilde.news/app/views/login/index.html.erb

50 lines
1.5 KiB
Plaintext
Raw Normal View History

<link rel="prefetch" href="<%= path_to_javascript 'application' %>" as="script" />
<div class="box wide">
<% 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 %>
2022-08-31 13:47:05 +00:00
<%= form_with url: login_path 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? %>
2022-02-15 15:49:48 +00:00
Not a user yet? <a href="/invitations/request">Request an invite</a>.
<% else %>
<p>
Not a user yet?
Read about <a href="/about#invitations">how invitations work</a> and see if you know
enable mod_userdir diff of `rails routes`: 12,13d11 < GET /newest/:user(.:format) home#newest_by_user < GET /newest/:user/page/:page(.:format) home#newest_by_user 32d29 < user_threads GET /threads/:user(.:format) comments#user_threads 120,122c117,132 < u GET /u(.:format) users#tree < user GET /u/:username(.:format) users#show < user_standing GET /u/:username/standing(.:format) users#standing --- > users_tree GET /users(.:format) users#tree > user GET /~:username(.:format) users#show > user_standing GET /~:username/standing(.:format) users#standing > GET /~:user/stories(/page/:page)(.:format) home#newest_by_user > user_threads GET /~:user/threads(.:format) comments#user_threads > user_ban POST /~:username/ban(.:format) users#ban > user_unban POST /~:username/unban(.:format) users#unban > user_disable_invite POST /~:username/disable_invitation(.:format) users#disable_invitation > user_enable_invite POST /~:username/enable_invitation(.:format) users#enable_invitation > u GET /u(.:format) redirect(302, /users) > GET /u/:username(.:format) redirect(302, /~%{username}) > GET /@:username(.:format) redirect(302, /~%{username}) > GET /u/:username/standing(.:format) redirect(302, ~%{username}/standing) > GET /newest/:user(.:format) redirect(302, ~%{user}/stories) > GET /newest/:user(/page/:page)(.:format) redirect(302, ~%{user}/stories/page/%{page}) > GET /threads/:user(.:format) redirect(302, ~%{user}/threads) 125,128d134 < user_ban POST /users/:username/ban(.:format) users#ban < user_unban POST /users/:username/unban(.:format) users#unban < user_disable_invite POST /users/:username/disable_invitation(.:format) users#disable_invitation < user_enable_invite POST /users/:username/enable_invitation(.:format) users#enable_invitation
2023-08-29 12:45:28 +00:00
<%= link_to 'a current user', users_tree_path %> 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>