Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Huỳnh Thiên Phước
venjob
Commits
53de3765
Commit
53de3765
authored
Jul 31, 2020
by
Huỳnh Thiên Phước
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
waiting, fix some problems
parent
c4052114
Pipeline
#749
failed with stages
in 0 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
5 deletions
+12
-5
app/assets/stylesheets/top_pages.scss
+10
-0
app/controllers/top_pages_controller.rb
+0
-1
app/views/layouts/_footer.html.erb
+1
-1
app/views/layouts/_show_cities.html.erb
+1
-1
lib/src/crontab.rb
+0
-2
No files found.
app/assets/stylesheets/top_pages.scss
View file @
53de3765
...
...
@@ -72,3 +72,12 @@
.search-bar
{
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
app/controllers/top_pages_controller.rb
View file @
53de3765
...
...
@@ -4,6 +4,5 @@ class TopPagesController < ApplicationController
@jobs
=
Job
.
limit
(
5
).
order
(
created_at: :desc
)
@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
end
end
app/views/layouts/_footer.html.erb
View file @
53de3765
<div
class=
"
p-3 mb-2 bg-dark text-white
"
>
<div
class=
"
custom_footer
"
>
<div
class=
"footer-text"
>
<div
class=
"float-right"
>
Copyright © ZIGExN VeNtura 2020
...
...
app/views/layouts/_show_cities.html.erb
View file @
53de3765
<%
@jobs_of_cities
.
each
do
|
city
,
count_job
|
%>
<div
class=
"col-4"
>
<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>
</div>
...
...
lib/src/crontab.rb
View file @
53de3765
class
Crontab
attr_accessor
def
initialize
(
logger
)
@mylogger
=
logger
end
...
...
@@ -82,7 +81,6 @@ class Crontab
if
job_check
==
false
create_job
(
title_job
,
level
,
salary
,
experience
,
expiration_date
,
description
,
company_table
.
id
)
end
next
if
job_check
==
false
job_find
=
Job
.
find_by
(
title:
title_job
,
company_id:
company_table
.
id
)
create_city_rel
(
get_row
,
job_find
)
create_industry_rel
(
get_row
,
job_find
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment