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
4afae765
Commit
4afae765
authored
Aug 11, 2020
by
Huỳnh Thiên Phước
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix css location and industry
parent
7e6f3045
Pipeline
#871
canceled with stages
in 0 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
5 deletions
+22
-5
app/assets/stylesheets/jobs.scss
+17
-0
app/controllers/jobs_controller.rb
+1
-1
app/views/jobs/detail.html.erb
+3
-3
config/routes.rb
+1
-1
No files found.
app/assets/stylesheets/jobs.scss
View file @
4afae765
...
...
@@ -55,3 +55,20 @@
text-decoration
:
none
;
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
:
""
;
}
app/controllers/jobs_controller.rb
View file @
4afae765
...
...
@@ -23,7 +23,7 @@ class JobsController < ApplicationController
@result_for_job
=
@company
.
jobs
.
count
end
def
access_jobs
def
detail
@job_details
=
Job
.
find
(
params
[
:id
])
end
...
...
app/views/jobs/
access_jobs
.html.erb
→
app/views/jobs/
detail
.html.erb
View file @
4afae765
...
...
@@ -9,10 +9,10 @@
<div
class=
"breadcrumb"
>
<%=
link_to
"TOP"
,
root_path
%>
 
/
 
<%
@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
%>
 
/
 
<%
@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
%>
 
/
 
<%=
@job_details
.
title
.
truncate_words
(
5
)
%>
</div>
...
...
@@ -32,7 +32,7 @@
<div
class=
"city"
>
<strong>
Location:
</strong>
<%
@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
%>
</div>
<div
class=
"created-day"
>
...
...
config/routes.rb
View file @
4afae765
...
...
@@ -5,7 +5,7 @@ Rails.application.routes.draw do
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
'detail/:id'
,
to:
'jobs#
access_jobs
'
,
as: :job_detail
get
'detail/:id'
,
to:
'jobs#
detail
'
,
as: :job_detail
resources
:top_pages
resources
:industries
...
...
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