Commit f252bec3 authored by Galen Evilla's avatar Galen Evilla

tweaks some more

parent 5fed7c3e
......@@ -16,7 +16,6 @@
<%@positions.each do |p|%>
<hr>
<h3><center><%=p.name%></center></h3>
<% if p.candidates.size > 0 %>
<table class="table table-hover">
<thead>
......@@ -39,7 +38,7 @@
</tr>
<%end%>
<%else%>
<h4><center>No created candidates.</center></h4>
<h4><center>No candidates available.</center></h4>
<%end%>
<center>
<div class="btn btn-info" role ="button">
......@@ -49,7 +48,7 @@
</table>
<%end%>
<% else %>
<h4><center>No created candidates.</center></h4>
<h4><center>No candidates available.</center></h4>
<% end %>
</div>
</div>
......
......@@ -26,7 +26,7 @@
<h2><%= @candidate.position.name %></h2>
<br>
<h3>" <%= @candidate.slogan%> "</h3>
<h3>"<%= @candidate.slogan%>"</h3>
<br>
<center>
<table class="table table-hover">
......@@ -46,18 +46,22 @@
</table>
</center>
<hr>
<% if @candidate.votes.count > 0 %>
<h3>Voters who voted for <%= @candidate.full_name%></h3>
<ul>
<li>
<% @candidate.votes.each do |v|%>
<%= "#{v.user.full_name}"%>
<br>
<p>
Comments: <%=v.comment%>
</p>
</li>
<%end%>
</ul>
<%else%>
<h3>No Voters.</h3>
<%end%>
<hr>
<%= link_to "Back to Candidates", admin_candidates_path %>
</div>
......
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