small fix for no skills

This commit is contained in:
Harry Bomrah 2018-01-01 22:01:26 +08:00
parent 060102637c
commit 76d0976ae8
1 changed files with 2 additions and 1 deletions

View File

@ -158,6 +158,7 @@ class RecruitmentsController < PseudoSessionController
end
if !job.skills.empty?
skills = job.skills.collect{|skill| "<span class='label label-info'>#{skill}</span>"}
skills = skills.join(" ")
else
skills = t("recruitment.not_available")
end
@ -188,7 +189,7 @@ class RecruitmentsController < PseudoSessionController
"location-title" => t("recruitment.location"),
"location" => (!job.location_of_work.nil? && job.location_of_work != "" ? job.location_of_work : t("recruitment.not_available")),
"skills-title" => t("recruitment.skills_title"),
"skills" => skills.join(" "),
"skills" => skills,
"experience-title" => t("recruitment.experience_title"),
"experience" => experience,
"qualification-title" => t("recruitment.qualification"),