Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VeNJOB
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyen Ngoc Nghia
VeNJOB
Commits
753f0531
Commit
753f0531
authored
Dec 18, 2019
by
nnnghia98
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add fav button
parent
12830e37
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
17 deletions
+61
-17
app/assets/stylesheets/custom.scss
+34
-0
app/views/jobs/_job.html.erb
+20
-4
app/views/jobs/index.html.erb
+6
-12
config/settings.yml
+1
-1
No files found.
app/assets/stylesheets/custom.scss
View file @
753f0531
...
...
@@ -123,3 +123,37 @@ html {
.top_cities
{
margin
:
20px
;
}
/* job */
.box
{
border
:
solid
1px
black
;
margin
:
10px
;
padding
:
5px
;
.job_data
{
width
:
100%
;
.job_data_row
{
display
:
table
;
width
:
100%
;
padding
:
1px
0
0
0
;
dt
{
display
:
table-cell
;
margin
:
1px
0
0
0
;
width
:
100px
;
padding
:
0
0
0
8px
;
font-weight
:
bold
;
line-height
:
32px
;
vertical-align
:
top
;
}
dd
{
display
:
table-cell
;
padding
:
8px
3px
8px
8px
;
}
}
}
}
dl
,
dt
,
dd
{
list-style-type
:
none
;
line-height
:
normal
;
}
app/views/jobs/_job.html.erb
View file @
753f0531
<div>
<%=
job
.
title
%>
<%=
job
.
short_des
%>
<%=
job
.
salary
%>
<div
class=
"box"
>
<div
class=
"job_data"
>
<dl
class=
"job_data_row"
>
<dt>
Title
</dt>
<dd>
<%=
job
.
title
%>
</dd>
</dl>
<dl
class=
"job_data_row"
>
<dt>
Short description
</dt>
<dd>
<%=
job
.
short_des
%>
</dd>
</dl>
<dl
class=
"job_data_row"
>
<dt>
Salary
</dt>
<dd>
<%=
job
.
salary
%>
</dd>
</dl>
<dl
class=
"job_data_row"
>
<dt>
Location
</dt>
<dd>
<%=
job
.
cities
.
first
.
name
%>
</dd>
</dl>
</div>
<button
type=
"button"
class=
"btn btn-light"
>
Favorite
</button>
</div>
app/views/jobs/index.html.erb
View file @
753f0531
<div
class=
"container"
>
<h2>
Total:
</h2>
<h2>
Result for:
</h2>
<br>
<h3>
Total:
<%=
Job
.
count
%>
</h3>
<h3>
Result for:
</h3>
<%=
paginate
@jobs
%>
<table
class=
"table"
>
<tbody>
<ul
class=
"table"
>
<%=
render
partial:
"jobs/job"
,
collection:
@jobs
%>
</ul>
</tbody>
</table>
<%=
render
partial:
"jobs/job"
,
collection:
@jobs
%>
<%=
paginate
@jobs
%>
</div>
config/settings.yml
View file @
753f0531
job
:
per_page
:
5
per_page
:
20
csv
:
file_path
:
"
jobss.csv"
...
...
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