diff options
Diffstat (limited to 'app/views/layouts/_navbar.html.erb')
-rw-r--r-- | app/views/layouts/_navbar.html.erb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/views/layouts/_navbar.html.erb b/app/views/layouts/_navbar.html.erb index af7a0e4..952e291 100644 --- a/app/views/layouts/_navbar.html.erb +++ b/app/views/layouts/_navbar.html.erb @@ -15,16 +15,17 @@ <a href="#" class="block py-2 px-3 rounded">About</a> </li> <li> - <a href="#" class="block py-2 px-3 rounded">Services</a> - </li> - <li> - <a href="#" class="block py-2 px-3 rounded">Pricing</a> + <a href="#" class="block py-2 px-3 rounded">FAQ</a> </li> <li> <a href="#" class="block py-2 px-3 rounde">Contact</a> </li> <li> - <%= link_to "Log out", Current.session, class: "block py-2 px-3", data: { turbo_method: :delete }%> + <% if Current.user %> + <%= link_to "Log out", Current.session, class: "block py-2 px-3", data: { turbo_method: :delete } %> + <% else %> + <%= link_to "Log in", new_session_path, class: "block py-2 px-3" %> + <% end %> </li> </ul> </div> |