Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
candi-date-tayo
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
George Nicole Balmaceda
candi-date-tayo
Commits
ca426a99
Commit
ca426a99
authored
Jul 20, 2016
by
royce-matthew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added header
parent
9fa620d1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
7 deletions
+35
-7
style.css
app/assets/stylesheets/style.css
+9
-0
index.html.erb
app/views/admin/candidates/index.html.erb
+7
-2
index.html.erb
app/views/admin/positions/index.html.erb
+16
-3
index.html.erb
app/views/pages/index.html.erb
+3
-2
No files found.
app/assets/stylesheets/style.css
View file @
ca426a99
...
@@ -191,3 +191,12 @@ thead {
...
@@ -191,3 +191,12 @@ thead {
.candidate-name
{
.candidate-name
{
font-size
:
32px
;
font-size
:
32px
;
}
}
.position-container
{
display
:
block
;
margin-top
:
40px
;
}
.position-container
a
{
text-decoration
:
underline
;
}
\ No newline at end of file
app/views/admin/candidates/index.html.erb
View file @
ca426a99
<!--<div class="overlay"><div class="row-image" style="height: 400px; background: url(
<%=
asset_path
'image1.JPG'
%>
) center center"></div></div>
<div
class=
"overlay"
><div
class=
"row-image"
style=
"height: 400px; background: url(
<%=
asset_path
'image1.JPG'
%>
) center center"
></div></div>
-->
<%
if
user_signed_in?
%>
<h6
style=
"text-align: left; color: #8e8e8e !important; margin: 0px;"
>
Hi,
<%=
current_user
.
first_name
%>
, you can view the candidates here.
</h6>
<%
end
%>
<h4>
Roster of Candidates
</h4>
<h4>
Roster of Candidates
</h4>
...
...
app/views/admin/positions/index.html.erb
View file @
ca426a99
<
h4>
Positions from the Vote-a-Sutra
</h4
>
<
%
if
user_signed_in?
%
>
<%=
link_to
"+ New Position"
,
new_admin_position_path
%>
<h6
style=
"text-align: left; color: #8e8e8e !important; margin: 0px;"
>
What position would you like to add or view,
<%=
current_user
.
first_name
%>
?
</h6>
<div
class=
"container"
>
<%
end
%>
<h4>
List of Positions
</h4>
<%=
link_to
new_admin_position_path
,
{
:class
=>
"button-primary pink"
}
do
%>
Create a Position
<span
class=
'ion-plus-round'
></span>
<%
end
%>
<div
class=
"position-container"
>
<%
@positions
.
each
do
|
p
|
%>
<%
@positions
.
each
do
|
p
|
%>
<div
style=
""
>
<div
style=
""
>
...
...
app/views/pages/index.html.erb
View file @
ca426a99
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<%
end
%>
<%
end
%>
<h3
class=
"main-heading"
>
Election Summary
</h3>
<h3
class=
"main-heading"
>
<span
class=
"ion-stats-bars"
></span>
Election Summary
</h3>
<hr>
<hr>
<%
@positions
.
each
do
|
p
|
%>
<%
@positions
.
each
do
|
p
|
%>
<div
style=
"display:inline-block; padding:20px"
>
<div
style=
"display:inline-block; padding:20px"
>
...
@@ -25,3 +25,4 @@
...
@@ -25,3 +25,4 @@
</div>
</div>
<%
end
%>
<%
end
%>
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