Commit ab84e9e3 authored by Wills Gomez's avatar Wills Gomez

message

parent c172c99b
......@@ -30,4 +30,4 @@ td {
ul.nav navbar-nav navbar-right{
padding-top: 20px;
}
\ No newline at end of file
}
<<<<<<< HEAD
<h1><center><%= @candidate.full_name%></center></h1>
<center><%=link_to "Edit", edit_admin_candidate_path(@candidate.id)%>
<%=link_to "Delete", admin_candidate_path(@candidate.id), method: :delete%></center>
=======
<% provide(:candidate, "active") %>
<% provide(:title, "#{@candidate.full_name}" ) %>
<h1>Name of the Candidate: <%= @candidate.full_name%></h1>
<%=link_to "Edit", edit_admin_candidate_path(@candidate.id)%>
<br>
<%=link_to "Delete", admin_candidate_path(@candidate.id), method: :delete%>
>>>>>>> 2920b0418adc40c16be842ad29c33a2aefaa3052
<br>
<h3>Position: <%= @candidate.position.name %></h3>
<%
......
<<<<<<< HEAD
<h1><center>POSITIONS</center></h1>
<center><%=link_to "Add New Position", new_admin_position_path%></center>
=======
<% provide(:position, "active") %>
<% provide(:title, "Positions") %>
<h1>Positions</h1>
>>>>>>> 2920b0418adc40c16be842ad29c33a2aefaa3052
<hr>
<% @positions.each do |p| %>
<h2><%= link_to p.name, admin_position_path(p.id) %></h2>
<ul>
<% p.candidates.each do |c|%>
<li><%=link_to c.full_name, admin_candidate_path(c.id)%></li>
<% end %>
</ul>
<% end %>
\ No newline at end of file
......@@ -14,29 +14,27 @@
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<<<<<<< HEAD
<li><a href="/profile">Hello, <%= current_user.first_name%>!</a></li>
<li><%= link_to "Home", root_path %></li>
<li><%= link_to "Candidates", admin_candidates_path %></li>
<li><%= link_to "Positions", admin_positions_path %></li>
<li> <a href="/about">About</a> </li>
=======
<li class="<%= yield(:home) %>" ><%= link_to "Home", root_path %></li>
<li class="<%= yield(:candidate) %>" ><%= link_to "Candidates", admin_candidates_path %></li>
<li class="<%= yield(:position) %>" ><%= link_to "Positions", admin_positions_path %></li>
<li class="<%= yield(:vote) %>" ><a href="/voting/votes">Vote now</li>
<li class="<%= yield(:about) %>" ><%= link_to "About", about_path %></li>
>>>>>>> 2920b0418adc40c16be842ad29c33a2aefaa3052
<%if user_signed_in?%>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="/voting/votes">Vote now</li>
<li><%= link_to "Logout", destroy_user_session_path, method: :delete %></li>
<li class="<%= yield(:vote) %>" ><a href="/voting/votes">Vote now</li>
<li><%= link_to "Logout", destroy_user_session_path, method: :delete %></li>
</u1>
</ul>
</li>
<%else%>
<li><%= link_to "Log-in", new_user_session_path %></li>
......
<<<<<<< HEAD
=======
<% provide(:home, "active") %>
<% provide(:title, "Home") %>
>>>>>>> 2920b0418adc40c16be842ad29c33a2aefaa3052
<div class ="index">
<h1><center>Current Vote Tally</center></h1>
<br>
<br>
<<<<<<< HEAD
=======
<% if user_signed_in? %>
<% case current_user.role %>
<% when 'voter' %>
<h3>Welcome, <%= current_user.first_name%>! </h3>
<% when 'admin' %>
<h3>Welcome, Administrator</h3>
<% end %>
<% else %>
<h3>Welcome</h3>
<% end %>
>>>>>>> 2920b0418adc40c16be842ad29c33a2aefaa3052
<%@positions.each do |p|%>
<div class ="section">
<div class ="box">
......@@ -44,10 +28,6 @@
<td></td>
<td><center><%=link_to c.full_name, admin_candidate_path(c.id)%></center></td>
<td><center><%=c.votes.count%></center></td>
<<<<<<< HEAD
=======
<td><center><progress value="<%=c.votes.count%>" max="<%=@users.count%>" >(<%=c.votes.count%>)</center></td>
>>>>>>> 2920b0418adc40c16be842ad29c33a2aefaa3052
</tr>
<%end%>
</table>
......
final_project @ edd4e3e8
Subproject commit c241defdc6f70a4a33df309c2e1cc91982c37d1a
Subproject commit edd4e3e875f72343ef8de9564756fdd923aaa085
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