Main nav bar now contains 3 menus:

- Home
- Search TISS
- Your Favorites
This commit is contained in:
Pfingstfrosch 2020-05-12 19:17:13 +02:00
parent ae6a202e59
commit a8f4d4a9db

View File

@ -21,18 +21,16 @@
<a href="#" class="logo">tiss2go</a> <a href="#" class="logo">tiss2go</a>
<div class="left-menu"> <div class="left-menu">
<%= link_to 'Home', root_path %> <%= link_to 'Home', root_path %>
<%= link_to 'Search', tiss_crawler_search_path %> <%= link_to 'Search TISS', tiss_crawler_search_path %>
<%= link_to 'Favorite People', '/favorites/favorite_person/index' %> <%= link_to 'Your Favorites', '/favorites/index' %>
<%#= link_to 'Projects', projects_index_path %>
<%#= link_to 'Theses', theses_index_path %>
</div> </div>
<div class="right-menu"> <div class="right-menu">
<% if user_signed_in? %> <% if user_signed_in? %>
<%= link_to 'Edit profile', edit_user_registration_path %><!-- <%= link_to 'Edit profile', edit_user_registration_path %>
--><%= link_to "Log out", destroy_user_session_path, method: :delete %> <%= link_to "Log out", destroy_user_session_path, method: :delete %>
<% else %> <% else %>
<%= link_to "Sign up", new_user_registration_path %><!-- <%= link_to "Sign up", new_user_registration_path %>
--><%= link_to "Log in", new_user_session_path %> <%= link_to "Log in", new_user_session_path %>
<% end %> <% end %>
</div> </div>
</nav> </nav>