waiting, fix some problems

parent c4052114
Pipeline #749 failed with stages
in 0 seconds
...@@ -72,3 +72,12 @@ ...@@ -72,3 +72,12 @@
.search-bar{ .search-bar{
size: 50; size: 50;
} }
.custom_footer {
width: 100%;
height: 150px;
background-image: linear-gradient(160deg, black, #8c8686);
color: white;
}
.city-name{
}
\ No newline at end of file
...@@ -4,6 +4,5 @@ class TopPagesController < ApplicationController ...@@ -4,6 +4,5 @@ class TopPagesController < ApplicationController
@jobs = Job.limit(5).order(created_at: :desc) @jobs = Job.limit(5).order(created_at: :desc)
@jobs_of_cities = CityJob.limit(9).group('city_id').order('Count(*) DESC').count @jobs_of_cities = CityJob.limit(9).group('city_id').order('Count(*) DESC').count
@jobs_of_industries = IndustryJob.limit(9).group('industry_id').order('Count(*) DESC').count @jobs_of_industries = IndustryJob.limit(9).group('industry_id').order('Count(*) DESC').count
end end
end end
<div class="p-3 mb-2 bg-dark text-white"> <div class="custom_footer">
<div class="footer-text"> <div class="footer-text">
<div class="float-right"> <div class="float-right">
Copyright © ZIGExN VeNtura 2020 Copyright © ZIGExN VeNtura 2020
......
<% @jobs_of_cities.each do |city, count_job| %> <% @jobs_of_cities.each do |city, count_job| %>
<div class="col-4"> <div class="col-4">
<div class="row-table border border-dark rounded"> <div class="row-table border border-dark rounded">
<div class="city-name"><strong><%= City.find(city).name %></strong></div> <div><strong><%= link_to "#{City.find(city).name}", '#', class: "city-name" %></strong></div>
<div class="count-job"><%= count_job %></div> <div class="count-job"><%= count_job %></div>
</div> </div>
</div> </div>
......
class Crontab class Crontab
attr_accessor
def initialize(logger) def initialize(logger)
@mylogger = logger @mylogger = logger
end end
...@@ -82,7 +81,6 @@ class Crontab ...@@ -82,7 +81,6 @@ class Crontab
if job_check == false if job_check == false
create_job(title_job, level, salary, experience, expiration_date, description, company_table.id) create_job(title_job, level, salary, experience, expiration_date, description, company_table.id)
end end
next if job_check == false
job_find = Job.find_by(title: title_job, company_id: company_table.id) job_find = Job.find_by(title: title_job, company_id: company_table.id)
create_city_rel(get_row, job_find) create_city_rel(get_row, job_find)
create_industry_rel(get_row, job_find) create_industry_rel(get_row, job_find)
......
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