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
b12fafe5
Commit
b12fafe5
authored
Jul 20, 2016
by
Galen Evilla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
last na talaga
parent
74a957db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
index.html.erb
Halalan-FINAL/app/views/voting/votes/index.html.erb
+12
-13
No files found.
Halalan-FINAL/app/views/voting/votes/index.html.erb
View file @
b12fafe5
...
...
@@ -10,10 +10,10 @@
<h2><center>
Hello,
<%=
current_user
.
full_name
%>
!
</center></h2>
<h4>
Vote now for:
</h4>
<ul>
<%
if
@positions
.
size
>
0
%>
<%
@positions
.
each
do
|
p
|
%>
<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
%>
...
...
@@ -22,15 +22,14 @@
<%
end
%>
<%
end
%>
<%
end
%>
</ol>
<%
if
!
voted_for
%>
<%=
link_to
"Vote for a
#{
p
.
name
}
"
,
"/voting/new/
#{
p
.
id
}
"
%>
<%
else
%>
<%
end
%>
</li>
<%
end
%>
<%
else
%>
<h4>
No available candidates to vote for.
</h4>
<h5>
No available candidates to vote for.
</h5>
<%
end
%>
</li>
<%
end
%>
</ul>
<hr>
...
...
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