Commit c4e59d22 authored by Wills Gomez's avatar Wills Gomez

navigation bar WIP

parent c241defd
...@@ -7,21 +7,29 @@ ...@@ -7,21 +7,29 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand" ><b>HalalanPH</b></a> <a class="navbar-brand" ><b>Halalan PH</b></a>
</div> </div>
<!-- Collect the nav links, forms, and other content for toggling --> <!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
<li class="active"><%= link_to "Home", root_path %></li> <li><%= link_to "Home", root_path %></li>
<li><%= link_to "Candidates", admin_candidates_path %></li> <li><%= link_to "Candidates", admin_candidates_path %></li>
<li><%= link_to "Positions", admin_positions_path %></li> <li><%= link_to "Positions", admin_positions_path %></li>
<li><a href="/voting/votes">Vote now</li> <li><a href="/voting/votes">Vote now</li>
<%if user_signed_in?%> <%if user_signed_in?%>
<li><%= link_to "Logout", destroy_user_session_path, method: :delete %></li> <li class="dropdown">
<li> Hello, <%= current_user.first_name%>!</li> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Hello, <%= current_user.first_name%>!<b class="caret"></b></a>
<li> <a href="/profile">My Profile</a> </li>
<ul class="dropdown-menu">
<li> <a href="/profile">My Profile</a> </li>
<li><%= link_to "Logout", destroy_user_session_path, method: :delete %></li>
</u1>
</li>
<%else%> <%else%>
<li><%= link_to "Log-in", new_user_session_path %></li> <li><%= link_to "Log-in", new_user_session_path %></li>
<li><%= link_to "Register", new_user_registration_path %></li> <li><%= link_to "Register", new_user_registration_path %></li>
......
final_project @ c241defd
Subproject commit c241defdc6f70a4a33df309c2e1cc91982c37d1a
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