Commit 475f9ba1 authored by Wills Gomez's avatar Wills Gomez

changed profile for finals

parent 0f4f790b
...@@ -3,17 +3,36 @@ ...@@ -3,17 +3,36 @@
<div class="col-md-12"> <div class="col-md-12">
<h2>Hey <%=current_user.first_name%>!</h2> <h2>Hey <%=current_user.first_name%>!</h2>
<br> <br>
You Voted for: <h4>You Voted for:</h4>
<br> <br>
<ul> <ul>
<%current_user.votes.each do |v|%> <% if @positions.size > 0 %>
<li> <ul>
<%="#{v.candidate.position.name}: #{v.candidate.full_name}"%> <%@positions.each do |p|%>
<p> <h3> <li><%=p.name%><br>
Comments: <%=v.comment%> <%voted_for = false%>
</p> <% if p.candidates.size > 0 %>
</li> <% p.candidates.each do |c|%>
<%end%> <%c.votes.each do |v|%>
<%if v.user_id == current_user.id%>
<h4><%= v.candidate.full_name %></h4>
<p>
<h5>Comments: <%=v.comment%></h5>
<%voted_for = true%>
<% end %>
<br>
<%end%>
<% end %>
<% else %>
<h5></h5>
<%end%>
</li>
</h3>
<%end%>
</ul>
<%else%>
<h5></h5>
<%end%>
</ul> </ul>
</div> </div>
</div> </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