Skip to content

Commit

Permalink
Rename paths to session actions in obs_factory
Browse files Browse the repository at this point in the history
  • Loading branch information
saraycp committed Sep 6, 2019
1 parent 43038da commit c8ce5eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
- else
= link_to 'Create Home', new_project_path(name: User.session!.home_project_name)
|
\#{link_to 'Logout', session_destroy_path, method: :delete, id: 'logout-link'}
\#{link_to 'Logout', session_path, method: :delete, id: 'logout-link'}
- elsif CONFIG['kerberos_mode']
= link_to 'Log In', session_new_path
= link_to 'Log In', new_session_path
- else
- if CONFIG['proxy_auth_mode'] == :on
- unless CONFIG['proxy_auth_register_page'].blank?
= link_to 'Sign Up', "#{CONFIG['proxy_auth_register_page']}?%22"
|
= link_to 'Log In', session_new_path, id: 'login-trigger'
= link_to 'Log In', new_session_path, id: 'login-trigger'
#login-form
= form_tag(CONFIG['proxy_auth_login_page'], method: :post, id: 'login_form', enctype: 'application/x-www-form-urlencoded') do
%p
Expand All @@ -43,9 +43,9 @@
- if can_register
= link_to 'Sign Up', user_register_user_path
|
= link_to 'Log In', session_new_path, id: 'login-trigger'
= link_to 'Log In', new_session_path, id: 'login-trigger'
#login-form
= form_tag(session_create_path) do
= form_tag(session_path, method: :post) do
%p
= label_tag(:username, 'Username')
= text_field_tag(:username, '')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<% else %>
<li><%= link_to "Create Home Project", new_project_path(name: User.session!.home_project_name) %></li>
<% end %>
<li><%= link_to 'Logout', session_destroy_path, method: :delete %></li>
<li><%= link_to 'Logout', session_path, method: :delete %></li>
</ul>
</div>
<% end -%>
Expand Down

0 comments on commit c8ce5eb

Please sign in to comment.