Remove JavaScript in navbar and include logout
Signed-off-by: Tobias Eidelpes <tobias@eidelpes.info>
This commit is contained in:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user