<% provide(:title, "#{@user.full_name}" ) %> <div class="container"> <div class="row"> <div class="col-md-12"> <% if @user.votes.size > 0 %> <% @user.votes.each do |v|%> <li> <%="#{v.candidate.position.name}: #{v.candidate.full_name}"%> <p> Comments: <%=v.comment%> </p> </li> <%end%> <%else%> <center> <% if current_user.id == @user.id %> <h4> <%= link_to "You haven't voted for any candidates yet. Vote Now!", "/voting/votes" %> </h4> <%else%> <h4> <%=@user.full_name %> has not casted their votes yet %> </h4> <%end%> </center> <%end%> </div> </div> </div>