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">
|
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 %>
|
2022-08-31 13:47:05 +00:00
|
|
|
<%= form_with url: login_path 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? %>
|
2022-02-15 15:49:48 +00:00
|
|
|
Not a user yet? <a href="/invitations/request">Request an invite</a>.
|
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
|
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.
|
2022-02-15 15:45:49 +00:00
|
|
|
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>
|