Skip to content

Commit

Permalink
Display "Log In" link in sign_up partial unless a user is logged in
Browse files Browse the repository at this point in the history
Fixes #10326
  • Loading branch information
jcronenberg committed Nov 4, 2020
1 parent 718b7c9 commit 4f61707
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/app/views/webui/shared/_sign_up.html.haml
Expand Up @@ -24,5 +24,6 @@
class: 'form-control', required: true)
= hidden_field_tag 'register', 'true'
= submit_tag submit_btn_text, class: 'btn btn-primary'
or
= link_to('Log In', new_session_path)
- unless User.session
or
= link_to('Log In', new_session_path)

0 comments on commit 4f61707

Please sign in to comment.