Commit 88541d79 by Mai Hoang Thai Ha

add show job, breadcump

parent 49e65316
......@@ -16,5 +16,6 @@ class JobsController < ApplicationController
end
def show
@job = Job.find_by(params[:id])
end
end
h1 Jobs#show
p Find me in app/views/jobs/show.html.slim
.container.my-5
.breadcrumb
= link_to root_path, class: 'text-decoration-none text-info' do
'Home
span.d-block.ml-5
| >
- city_list = @job.cities
- city_list.each_with_index do |city, i|
= link_to city_jobs_path(city.slug), class: 'text-decoration-none text-info' do
= city.name
= " | " if i != city_list.length - 1
span.d-block
| >
- industry_list = @job.industries
- industry_list.each_with_index do |industry, i|
= link_to industry_jobs_path(industry.slug), class: 'text-decoration-none text-info' do
= industry.name
= " | " if i != industry_list.length - 1
span.d-block
| >
= @job.title
hr.my-4
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