Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MIS21FinalsElection
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
Dean Krisitan Bardeloza
MIS21FinalsElection
Commits
bd423676
Commit
bd423676
authored
Jul 20, 2016
by
Dean Krisitan Bardeloza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified show.html.erb for candidate views
parent
5e8443b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
show.html.erb
Election/app/views/admin/candidates/show.html.erb
+9
-0
show.html.erb
Election/app/views/candidates/show.html.erb
+19
-0
No files found.
Election/app/views/admin/candidates/show.html.erb
View file @
bd423676
...
@@ -7,4 +7,13 @@
...
@@ -7,4 +7,13 @@
<li>
Female Voters:
<%=
@votes_female
.
size
%>
</li>
<li>
Female Voters:
<%=
@votes_female
.
size
%>
</li>
</ul>
</ul>
<h2>
People who voted for
<%=
@candidate
.
first_name
%>
<%=
@candidate
.
last_name
%>
:
</h2>
<ul>
<li>
User - Comment
</li>
<%
@votes
.
each
do
|
v
|
%>
<li>
<%=
v
.
user
.
email
%>
-
<%=
v
.
comment
%>
</li>
<%
end
%>
</ul>
<%=
link_to
"Back to Candidates"
,
admin_candidates_path
%>
<%=
link_to
"Back to Candidates"
,
admin_candidates_path
%>
\ No newline at end of file
Election/app/views/candidates/show.html.erb
0 → 100644
View file @
bd423676
<h2>
Candidate:
<%=
@candidate
.
first_name
%>
<%=
@candidate
.
last_name
%>
</h2>
<h4>
Party List:
<%=
@candidate
.
party_list
.
name
%>
</h4>
<h3>
<%=
@candidate
.
last_name
%>
's Slogan:
<%=
@candidate
.
slogan
%>
</h3>
<ul>
<li>
Votes:
<%=
@votes_male
.
size
+
@votes_female
.
size
%>
</li>
<li>
Male Voters:
<%=
@votes_male
.
size
%>
</li>
<li>
Female Voters:
<%=
@votes_female
.
size
%>
</li>
</ul>
<h2>
People who voted for
<%=
@candidate
.
first_name
%>
<%=
@candidate
.
last_name
%>
:
</h2>
<ul>
<li>
User - Comment
</li>
<%
@votes
.
each
do
|
v
|
%>
<li>
<%=
v
.
user
.
email
%>
-
<%=
v
.
comment
%>
</li>
<%
end
%>
</ul>
<%=
link_to
"Back to Candidates"
,
admin_candidates_path
%>
\ No newline at end of file
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