ID20 - Job detail
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
app/views/jobs/show.html.erb 0 → 100644
1 <nav aria-label='breadcrumb'> 2 <ol class='breadcrumb'> 3 <li class='breadcrumb-item'><%= link_to 'TOP', root_path %></li> 4 <li class='breadcrumb-item'><%= link_to @job.locations.first.city, root_path %></li> -
Master
tại chưa merge phần job list vô nên chưa có url, nên em để tạm root á a
-
-
app/controllers/jobs_controller.rb 0 → 100644
1 class JobsController < ApplicationController 2 def show 3 @job = Job.find(params[:id]) -
app/views/jobs/show.html.erb 0 → 100644
7 </ol> 8 </nav> 9 <div class="row"> 10 <div class="col-10"> 11 <h2 class="font-weight-bold"><%= @job.title %></h2> 12 <h3><%= @job.company.name %></h3> 13 <h5><strong>Work places: </strong> 14 <i><%= @job.locations.map(&:city).join(' | ') %></i> 15 </h5> 16 <h5><strong>Industries: </strong> 17 <i><%= @job.industries.map(&:name).join(' | ') %></i> 18 </h5> 19 <h5><strong>Salary: </strong><%= @job.salary %></h5> 20 <hr> 21 <h3><strong>Description:</strong></h3> 22 <%= @job.description.html_safe %> -
2 2 root to: 'home#index' 3 3 get 'cities', to: 'locations#index' 4 4 get 'industries', to: 'industries#index' 5 resources :jobs, only: :show -
Toggle commit list
-
-
added 10 commits
-
d17806cb...9e711633 - 8 commits from branch
master - d570f109 - resolve conflict
- e1c9cc35 - edit fe show page
Toggle commit list -
d17806cb...9e711633 - 8 commits from branch
-
-
-
merged
Toggle commit list