added navigation and important links

parent 2fb84bb1
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>CandiDateTayo</title> <title>Votekapa</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %> <%= csrf_meta_tags %>
</head>
<body style="padding:30px;">
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>
<body> <nav class="nav">
<%= yield %> <h6 class="nav-item nohover"></h6>
</body> <a class="nav-item active" href="/">Home</a>
<%= link_to "Candidates", admin_candidates_path,{ :class=>" nav-item"} %>
<%= link_to "Positions", admin_positions_path,{ :class=>" nav-item"} %>
<a class="nav-item" href="/voting/votes">Vote now</a>
<%if user_signed_in?%>
<%= link_to "Logout", destroy_user_session_path,{ method: :delete,:class=>" nav-item right"} %>
<div class="nav-item nohover right"> Hello <%= current_user.email%></div>
<a href="/profile" class="nav-item right">My Profile</a>
<%else%>
<%= link_to "Log-in", new_user_session_path, {:class =>"nav-item right"}%>
<%= link_to "Register", user_registration_path, {:class =>"nav-item right"}%>
<%end%>
</nav>
<%= yield %>
</body>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment