fix css location and industry

parent 7974b2aa
Pipeline #868 canceled with stages
in 0 seconds
...@@ -55,3 +55,20 @@ ...@@ -55,3 +55,20 @@
text-decoration: none; text-decoration: none;
color: gray; color: gray;
} }
.industry::after {
margin: 5px;
content: "|";
color: black;
}
.industry:nth-last-child(1)::after {
content: "";
}
.location::after {
margin: 5px;
content: "|";
color: black;
}
.location:last-child::after {
content: "";
}
...@@ -23,7 +23,7 @@ class JobsController < ApplicationController ...@@ -23,7 +23,7 @@ class JobsController < ApplicationController
@result_for_job = @company.jobs.count @result_for_job = @company.jobs.count
end end
def access_jobs def detail
@job_details = Job.find(params[:id]) @job_details = Job.find(params[:id])
end end
......
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
<div class="breadcrumb"> <div class="breadcrumb">
<%= link_to "TOP", root_path %>&ensp;/&ensp; <%= link_to "TOP", root_path %>&ensp;/&ensp;
<% @job_details.cities.each do |city| %> <% @job_details.cities.each do |city| %>
<%= link_to '🎯' + city.name, city_jobs_path(converted_name: city.converted_name) %> <%= link_to city.name, city_jobs_path(converted_name: city.converted_name) , class: 'location' %>
<% end %>&ensp;/&ensp; <% end %>&ensp;/&ensp;
<% @job_details.industries.each do |industry| %> <% @job_details.industries.each do |industry| %>
<%= link_to '👉' + industry.name, industry_jobs_path(converted_name: industry.converted_name) %> <%= link_to industry.name, industry_jobs_path(converted_name: industry.converted_name), class: 'industry' %>
<% end %>&ensp;/&ensp; <% end %>&ensp;/&ensp;
<%= @job_details.title.truncate_words(5) %> <%= @job_details.title.truncate_words(5) %>
</div> </div>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<div class="city"> <div class="city">
<strong>Location:</strong> <strong>Location:</strong>
<% @job_details.cities.each do |city| %> <% @job_details.cities.each do |city| %>
<%= link_to '🎯' + city.name, city_jobs_path(converted_name: city.converted_name) %> <%= link_to city.name, city_jobs_path(converted_name: city.converted_name), class: 'location' %>
<% end %> <% end %>
</div> </div>
<div class="created-day"> <div class="created-day">
......
...@@ -5,7 +5,7 @@ Rails.application.routes.draw do ...@@ -5,7 +5,7 @@ Rails.application.routes.draw do
get 'jobs/industry/:converted_name', to: 'jobs#industry_jobs', as: :industry_jobs get 'jobs/industry/:converted_name', to: 'jobs#industry_jobs', as: :industry_jobs
get 'jobs/company/:converted_name', to: 'jobs#company_jobs', as: :company_jobs get 'jobs/company/:converted_name', to: 'jobs#company_jobs', as: :company_jobs
get 'detail/:id', to: 'jobs#access_jobs', as: :job_detail get 'detail/:id', to: 'jobs#detail', as: :job_detail
resources :top_pages resources :top_pages
resources :industries resources :industries
......
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