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
ccc7c5fc
Commit
ccc7c5fc
authored
Dec 24, 2019
by
nnnghia98
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix jobs_controller.rb
parent
946fe9d8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
13 deletions
+7
-13
app/assets/stylesheets/custom.scss
+1
-5
app/controllers/jobs_controller.rb
+0
-2
app/controllers/tops_controller.rb
+1
-1
app/views/cities/index.html.erb
+1
-1
app/views/jobs/index.html.erb
+2
-2
app/views/tops/index.html.erb
+2
-2
No files found.
app/assets/stylesheets/custom.scss
View file @
ccc7c5fc
...
@@ -51,10 +51,6 @@ p {
...
@@ -51,10 +51,6 @@ p {
line-height
:
1
.7em
;
line-height
:
1
.7em
;
}
}
.container.text-center
{
margin-bottom
:
30px
;
}
/* header */
/* header */
/* footer */
/* footer */
...
@@ -155,7 +151,7 @@ dl, dt, dd {
...
@@ -155,7 +151,7 @@ dl, dt, dd {
line-height
:
normal
;
line-height
:
normal
;
}
}
.breadcrum
p
{
.breadcrum
b
{
font-weight
:
lighter
;
font-weight
:
lighter
;
font-size
:
12px
;
font-size
:
12px
;
margin-bottom
:
15px
;
margin-bottom
:
15px
;
...
...
app/controllers/jobs_controller.rb
View file @
ccc7c5fc
class
JobsController
<
ApplicationController
class
JobsController
<
ApplicationController
def
index
def
index
if
params
[
:city_id
]
if
params
[
:city_id
]
redirect_to
jobs_path
if
params
[
:city_id
].
blank?
@city
=
City
.
find
(
params
[
:city_id
])
@city
=
City
.
find
(
params
[
:city_id
])
@jobs
=
@city
.
jobs
@jobs
=
@city
.
jobs
elsif
params
[
:industry_id
]
elsif
params
[
:industry_id
]
redirect_to
jobs_path
if
params
[
:industry_id
].
blank?
@industry
=
Industry
.
find
(
params
[
:industry_id
])
@industry
=
Industry
.
find
(
params
[
:industry_id
])
@jobs
=
@industry
.
jobs
@jobs
=
@industry
.
jobs
else
else
...
...
app/controllers/tops_controller.rb
View file @
ccc7c5fc
...
@@ -2,6 +2,6 @@ class TopsController < ApplicationController
...
@@ -2,6 +2,6 @@ class TopsController < ApplicationController
def
index
def
index
@vn_cities
=
City
.
city_order
@vn_cities
=
City
.
city_order
@industries
=
Industry
.
industry_order
@industries
=
Industry
.
industry_order
@jobs
=
Job
.
latest_job
@
latest_
jobs
=
Job
.
latest_job
end
end
end
end
app/views/cities/index.html.erb
View file @
ccc7c5fc
<div
class=
"container text-center"
>
<div
class=
"container text-center
mb-4
"
>
<h1>
City List
</h1>
<h1>
City List
</h1>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-sm"
>
<div
class=
"col-sm"
>
...
...
app/views/jobs/index.html.erb
View file @
ccc7c5fc
<h3>
Total:
<%=
params
[
:city_id
]
?
@city
.
job
s
.
count
:
<h3>
Total:
<%=
params
[
:city_id
]
?
@city
.
job
_
count
:
(
params
[
:industry_id
]
?
@industry
.
job
s
.
count
:
Job
.
count
)
%>
</h3>
(
params
[
:industry_id
]
?
@industry
.
job
_
count
:
Job
.
count
)
%>
</h3>
<h3>
Result for:
</h3>
<h3>
Result for:
</h3>
<%=
paginate
@jobs
%>
<%=
paginate
@jobs
%>
...
...
app/views/tops/index.html.erb
View file @
ccc7c5fc
...
@@ -9,11 +9,11 @@
...
@@ -9,11 +9,11 @@
<div
class=
"search"
></div>
<div
class=
"search"
></div>
<div
class=
"la
s
test_jobs"
>
<div
class=
"latest_jobs"
>
<h3
class=
"text-center"
>
Latest jobs
</h3>
<h3
class=
"text-center"
>
Latest jobs
</h3>
<div>
<div>
<%=
render
partial:
"shared/latest_job"
,
collection:
@jobs
%>
<%=
render
partial:
"shared/latest_job"
,
collection:
@
latest_
jobs
%>
</div>
</div>
</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