Remove JavaScript in navbar and include logout

Signed-off-by: Tobias Eidelpes <tobias@eidelpes.info>
This commit is contained in:
2020-04-14 11:39:41 +02:00
parent c8bc0ca1cd
commit 6014c64e64
5 changed files with 83 additions and 80 deletions
+19 -10
View File
@@ -12,16 +12,25 @@
</head>
<body>
<%= nav_bar do %>
<%= nav_link 'Home', root_path %>
<%= nav_link 'People', people_index_path %>
<%= nav_link 'Courses', courses_index_path %>
<%= nav_link 'Projects', projects_index_path %>
<%= nav_link 'Theses', theses_index_path %>
<a href="javascript:void(0);" class="icon" id="toggleMenu">
<%= show_svg('menu-white-24dp.svg') %>
</a>
<% end %>
<nav>
<input type="checkbox" id="nav-toggle">
<label for="nav-toggle" class="burger-menu">
<%= show_svg('menu-white-24dp.svg') %>
</label>
<div class="left-menu">
<%= link_to 'Home', root_path %>
<%= link_to 'People', people_index_path %>
<%= link_to 'Courses', courses_index_path %>
<%= link_to 'Projects', projects_index_path %>
<%= link_to 'Theses', theses_index_path %>
</div>
<a href="#" class="logo">tiss2go</a>
<div class="right-menu">
<!-- TODO: Change root_path to login/register page -->
<%= link_to 'Logout', root_path %>
</div>
</nav>
<main>
<%= yield %>