fix ID4

parent 56de9774
Pipeline #1379 canceled with stages
in 0 seconds
......@@ -50,7 +50,8 @@
.favourite {
float: right;
.btn {
height: 100%;
margin-top: 50%;
margin-bottom: 50%;
display: flex;
align-items: center;
justify-content: center;
......
......@@ -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
......@@ -3,9 +3,11 @@
= render 'search'
.container
h5.fw-normal
| Total:
| Total:
= pluralize(@total, 'job')
h5.fw-normal
| Result for:
= @result
h6.offset-md-4
= paginate @jobs, window: 1
.job-list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment