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
1
Merge Requests
1
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
Tô Ngọc Ánh
VeNJob
Commits
e175a0c0
Commit
e175a0c0
authored
Jul 31, 2020
by
Tô Ngọc Ánh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change double quotes to single quote
parent
6da4db83
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
38 additions
and
38 deletions
+38
-38
app/views/home/_city.html.erb
+4
-4
app/views/home/_industry.html.erb
+4
-4
app/views/home/_job.html.erb
+5
-5
app/views/home/index.html.erb
+12
-12
app/views/shared/_footer.html.erb
+1
-1
app/views/shared/_navbar.html.erb
+10
-10
app/views/shared/_searchbar.html.erb
+2
-2
No files found.
app/views/home/_city.html.erb
View file @
e175a0c0
<%
location
=
Location
.
find_by
(
id:
object
[
0
])
%>
<div
class=
"col-4 my-2"
>
<div
class=
"card"
>
<div
class=
'col-4 my-2'
>
<div
class=
'card'
>
<%=
link_to
'#'
,
class:
'card-body text-decoration-none'
do
%>
<h5
class=
"card-title font-weight-bold"
>
<%=
location
.
city
%>
</h5>
<p
class=
"card-text"
>
<%=
object
[
1
]
%>
Jobs
</p>
<h5
class=
'card-title font-weight-bold'
>
<%=
location
.
city
%>
</h5>
<p
class=
'card-text'
>
<%=
object
[
1
]
%>
Jobs
</p>
<%
end
%>
</div>
</div>
app/views/home/_industry.html.erb
View file @
e175a0c0
<%
industry
=
Industry
.
find_by
(
id:
object
[
0
])
%>
<div
class=
"col-4 my-2"
>
<div
class=
"card"
>
<div
class=
'col-4 my-2'
>
<div
class=
'card'
>
<%=
link_to
'#'
,
class:
'card-body text-decoration-none'
do
%>
<h5
class=
"card-title font-weight-bold"
>
<%=
industry
.
name
%>
</h5>
<p
class=
"card-text"
>
<%=
object
[
1
]
%>
Jobs
</p>
<h5
class=
'card-title font-weight-bold'
>
<%=
industry
.
name
%>
</h5>
<p
class=
'card-text'
>
<%=
object
[
1
]
%>
Jobs
</p>
<%
end
%>
</div>
</div>
app/views/home/_job.html.erb
View file @
e175a0c0
<div
class=
"col-md-6 col-sm-12 my-2"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<div
class=
'col-md-6 col-sm-12 my-2'
>
<div
class=
'card'
>
<div
class=
'card-body'
>
<%=
link_to
job
.
title
,
'#'
,
class:
'card-title font-weight-bold text-decoration-none'
%>
<p
class=
"card-text"
>
<%=
job
.
company
.
name
%>
</p>
<p
class=
"mb-0"
>
<p
class=
'card-text'
>
<%=
job
.
company
.
name
%>
</p>
<p
class=
'mb-0'
>
<strong>
Work place:
</strong>
<%
job
.
locations
.
each
do
|
location
|
%>
<%=
location
.
city
%>
...
...
app/views/home/index.html.erb
View file @
e175a0c0
<div
class=
"banner_top"
>
<div
class=
'banner_top'
>
<%=
image_tag
'venjob-banner'
,
class:
'banner_img'
%>
<div
class=
"overlay"
></div>
<div
class=
"box_seach text-center"
>
<div
class=
'overlay'
></div>
<div
class=
'box_seach text-center'
>
<h3>
We have
<%=
@total_jobs
%>
jobs for you
</h3>
<%=
render
'shared/searchbar'
%>
</div>
</div>
<div
id=
"latest-job"
class=
"my-4 text-center"
>
<div
id=
'latest-job'
class=
'my-4 text-center'
>
<h1>
Latest Job
</h1>
<div
class=
"row"
>
<div
class=
'row'
>
<%=
render
partial:
'home/job'
,
collection:
@jobs
%>
</div>
<a
href=
"#"
>
See more...
</a>
<a
href=
'#'
>
See more...
</a>
</div>
<div
id=
"top-city"
class=
"my-4 text-center"
>
<div
id=
'top-city'
class=
'my-4 text-center'
>
<h1>
Top Cities
</h1>
<div
class=
"row"
>
<div
class=
'row'
>
<%=
render
partial:
'home/city'
,
collection:
@top_cities
,
as: :object
%>
</div>
<a
href=
"#"
>
See more...
</a>
<a
href=
'#'
>
See more...
</a>
</div>
<div
id=
"top-industry"
class=
"my-4 text-center"
>
<div
id=
'top-industry'
class=
'my-4 text-center'
>
<h1>
Top Industries
</h1>
<div
class=
"row"
>
<div
class=
'row'
>
<%=
render
partial:
'home/industry'
,
collection:
@top_industries
,
as: :object
%>
</div>
<a
href=
"#"
>
See more...
</a>
<a
href=
'#'
>
See more...
</a>
</div>
app/views/shared/_footer.html.erb
View file @
e175a0c0
<div
class=
"footer text-center"
>
<div
class=
'footer text-center'
>
<span>
Copyright
©
2020 ZIGExN VeNtura
</span>
</div>
app/views/shared/_navbar.html.erb
View file @
e175a0c0
<nav
class=
"navbar navbar-expand-lg navbar-light sticky-top"
>
<a
class=
"navbar-brand"
href=
"#"
>
<nav
class=
'navbar navbar-expand-lg navbar-light sticky-top'
>
<a
class=
'navbar-brand'
href=
'#'
>
<%=
image_tag
'venjob-logo.png'
,
alt:
'VeNJob'
,
size:
'120x50'
%>
</a>
<button
class=
"navbar-toggler"
type=
"button"
data-toggle=
"collapse"
data-target=
"#navbarSupportedContent"
aria-controls=
"navbarSupportedContent"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
>
<span
class=
"navbar-toggler-icon"
></span>
<button
class=
'navbar-toggler'
type=
'button'
data-toggle=
'collapse'
data-target=
'#navbarSupportedContent'
aria-controls=
'navbarSupportedContent'
aria-expanded=
'false'
aria-label=
'Toggle navigation'
>
<span
class=
'navbar-toggler-icon'
></span>
</button>
<div
class=
"collapse navbar-collapse"
id=
"navbarSupportedContent"
>
<ul
class=
"navbar-nav ml-auto"
>
<li
class=
"nav-item active"
>
<a
class=
"nav-link text-white"
href=
"#"
>
Sign in
</a>
<div
class=
'collapse navbar-collapse'
id=
'navbarSupportedContent'
>
<ul
class=
'navbar-nav ml-auto'
>
<li
class=
'nav-item active'
>
<a
class=
'nav-link text-white'
href=
'#'
>
Sign in
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link text-white"
href=
"#"
>
Sign up
</a>
<li
class=
'nav-item'
>
<a
class=
'nav-link text-white'
href=
'#'
>
Sign up
</a>
</li>
</ul>
</div>
...
...
app/views/shared/_searchbar.html.erb
View file @
e175a0c0
<%=
form_tag
'#'
,
method: :get
,
class:
'mt-4'
do
%>
<%=
search_field_tag
:search
,
params
[
:keyword
],
placeholder:
'Search'
,
class:
'form-control my-2'
%>
<%=
select_tag
:industry
,
options_from_collection_for_select
(
@industries
,
:id
,
:name
,
"1"
),
class:
'form-control my-2'
%>
<%=
select_tag
:location
,
options_from_collection_for_select
(
@locations
,
:id
,
:city
,
"1"
),
class:
'form-control my-2'
%>
<%=
select_tag
:industry
,
options_from_collection_for_select
(
@industries
,
:id
,
:name
,
'1'
),
class:
'form-control my-2'
%>
<%=
select_tag
:location
,
options_from_collection_for_select
(
@locations
,
:id
,
:city
,
'1'
),
class:
'form-control my-2'
%>
<%=
submit_tag
'Search'
,
class:
'btn btn-outline-success my-2 my-sm-0'
%>
<%
end
%>
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