CodeForPhilly / codeforphilly.org

http://codeforphilly.github.io/codeforphilly.org/
9 stars 7 forks source link

Switch login/signup to profile/logout in new header when logged in #18

Closed themightychris closed 3 years ago

themightychris commented 3 years ago

Currently, the new bootstrap 4 toolbar used on the homepage/sponsors/volunteers page doesn't vary its login/signup links to reflect your logged-in status, but the homepage is where you usually get redirected after logging in, so it creates a very confusing infinite "login" loop:

Screen Shot 2021-08-31 at 8 20 38 PM

Whereas, from any other page there's a logged-in version of the toolbar:

Screen Shot 2021-08-31 at 8 22 40 PM

This template: https://github.com/CodeForPhilly/codeforphilly.org/blob/develop/html-templates/designs/site-bootstrap4.tpl#L73

Needs to have an if/else added like the old template has: https://github.com/CodeForPhilly/laddr/blob/develop/html-templates/includes/site.header.tpl#L32

To switch to showing a bootstrap4-ified version of what the login and signup buttons should be replaced with for logged-in users (e.g. a logout button and a link to their profile) -- maybe or maybe not set up with a submenu like the old ones used

themightychris commented 3 years ago

closed by #22