0

How can I put a button in a navbar after a session?

https://code.sololearn.com/wbx5oLeUDWw1/?ref=app What i'm trying to do here is to verify if the user has a session and making appear a logout button in my navbar. The error is in line 70 and forward. There's a syntax error in line 73. I'm thinking the error is nav-item. Since I'm putting in the navbar shouldn't be a nav-item? I'm really confused.

21st Mar 2020, 3:57 PM
Fábio Gonçalves
Fábio Gonçalves - avatar
3 ответов
+ 4
For instance, double quotes can't be directly included in a double quote string; this would cause it to end prematurely. https://code.sololearn.com/w59UEVP3ppbw/?ref=app
21st Mar 2020, 4:14 PM
Kevin ★
+ 2
double quote in li class in line 81, close the actual string. use single quote or escape it <li class='nav-item'> <li class=\"nav-item\">
21st Mar 2020, 4:13 PM
Taste
Taste - avatar
0
Thank you two a lot. I was really confused.
22nd Mar 2020, 4:28 PM
Fábio Gonçalves
Fábio Gonçalves - avatar