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 Hoang Mai Phuong
VeNJOB
Commits
1d619912
Commit
1d619912
authored
Aug 03, 2021
by
Nguyen Hoang Mai Phuong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ID4
parent
56de9774
Pipeline
#1379
canceled with stages
in 0 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
app/assets/stylesheets/custom.scss
+2
-1
app/controllers/jobs_controller.rb
+7
-2
app/views/jobs/show.html.slim
+2
-0
No files found.
app/assets/stylesheets/custom.scss
View file @
1d619912
...
...
@@ -50,7 +50,8 @@
.favourite
{
float
:
right
;
.btn
{
height
:
100%
;
margin-top
:
50%
;
margin-bottom
:
50%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
...
...
app/controllers/jobs_controller.rb
View file @
1d619912
...
...
@@ -2,10 +2,14 @@ class JobsController < ApplicationController
def
show
if
params
[
:city_slug
].
present?
@city
=
City
.
find_by
(
slug:
params
[
:city_slug
])
@jobs
=
@city
.
jobs
.
latest_jobs
.
page
(
params
[
:page
])
@jobs
=
@city
.
jobs
@result
=
@city
.
name
else
@industry
=
Industry
.
find_by
(
slug:
params
[
:industry_slug
])
@jobs
=
@industry
.
jobs
.
latest_jobs
.
page
(
params
[
:page
])
@jobs
=
@industry
.
jobs
@result
=
@industry
.
name
end
@total
=
@jobs
.
count
@jobs
=
@jobs
.
latest_jobs
.
page
(
params
[
:page
])
end
end
\ No newline at end of file
app/views/jobs/show.html.slim
View file @
1d619912
...
...
@@ -4,8 +4,10 @@
.container
h5
.fw-normal
|
Total:
=
pluralize
(
@total
,
'job'
)
h5
.fw-normal
|
Result for:
=
@result
h6
.offset-md-4
=
paginate
@jobs
,
window:
1
.job-list
...
...
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