Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
final_project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
evilla_gomez_guian_principe
final_project
Commits
475f9ba1
Commit
475f9ba1
authored
Jul 21, 2016
by
Wills Gomez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed profile for finals
parent
0f4f790b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
9 deletions
+28
-9
profile.html.erb
Halalan-FINAL/app/views/pages/profile.html.erb
+28
-9
No files found.
Halalan-FINAL/app/views/pages/profile.html.erb
View file @
475f9ba1
...
...
@@ -3,17 +3,36 @@
<div
class=
"col-md-12"
>
<h2>
Hey
<%=
current_user
.
first_name
%>
!
</h2>
<br>
You Voted for:
<h4>
You Voted for:
</h4>
<br>
<ul>
<%
current_user
.
votes
.
each
do
|
v
|
%>
<li>
<%=
"
#{
v
.
candidate
.
position
.
name
}
:
#{
v
.
candidate
.
full_name
}
"
%>
<p>
Comments:
<%=
v
.
comment
%>
</p>
</li>
<%
end
%>
<%
if
@positions
.
size
>
0
%>
<ul>
<%
@positions
.
each
do
|
p
|
%>
<h3>
<li>
<%=
p
.
name
%>
<br>
<%
voted_for
=
false
%>
<%
if
p
.
candidates
.
size
>
0
%>
<%
p
.
candidates
.
each
do
|
c
|
%>
<%
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>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment