Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob_thanhnd
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
3
Merge Requests
3
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
thanhnd
venjob_thanhnd
Commits
51bff2d7
Commit
51bff2d7
authored
Mar 13, 2020
by
thanhnd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix review 20200313 2
parent
7f8e4bf7
Pipeline
#511
failed with stages
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
app/controllers/jobs_controller.rb
+1
-4
app/views/jobs/show.html.erb
+6
-3
No files found.
app/controllers/jobs_controller.rb
View file @
51bff2d7
class
JobsController
<
ApplicationController
class
JobsController
<
ApplicationController
def
show
def
show
#@job_detail = Job.find_by_id(params[:id]) > 0 ? Job.find_by_id(params[:id]) : 1
@job_detail
=
Job
.
find_by_id
(
params
[
:id
])
job_id
=
params
[
:id
].
to_i
>
0
?
params
[:
id
].
to_i
:
1
@job_detail
=
Job
.
find_by_id
(
job_id
)
end
end
def
index
def
index
...
...
app/views/jobs/show.html.erb
View file @
51bff2d7
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
</div>
</div>
<div
id=
"job_detail"
class=
"container p-5 my-2 bg-secondary text-white"
>
<div
id=
"job_detail"
class=
"container p-5 my-2 bg-secondary text-white"
>
<%
if
@job_detail
.
nil?
==
true
%>
<div>
This id is not available.
</div>
<%
else
%>
<ul
class=
"breadcrumb"
>
<ul
class=
"breadcrumb"
>
<li><a
href=
"#"
>
Top
</a></li>
<li><a
href=
"#"
>
Top
</a></li>
<li><a
href=
"#"
>
City
</a></li>
<li><a
href=
"#"
>
City
</a></li>
...
@@ -16,7 +21,6 @@
...
@@ -16,7 +21,6 @@
<li>
<%=
@job_detail
.
job_name
%>
</li>
<li>
<%=
@job_detail
.
job_name
%>
</li>
</ul>
</ul>
<font
color=
"red"
><b><label
>
Job Detail:
</label></b></font>
<font
color=
"red"
><b><label
>
Job Detail:
</label></b></font>
<ul>
<ul>
<li>
<%=
@job_detail
.
job_name
%>
</li>
<li>
<%=
@job_detail
.
job_name
%>
</li>
...
@@ -26,10 +30,9 @@
...
@@ -26,10 +30,9 @@
<li
><span
class=
"text"
>
<%=
@job_detail
.
description
%>
</span>
<li
><span
class=
"text"
>
<%=
@job_detail
.
description
%>
</span>
</li>
</li>
</ul>
</ul>
<button
class=
"button button1"
>
Apply
</button>
<button
class=
"button button1"
>
Apply
</button>
<button
class=
"button button2"
>
Favorites
</button>
<button
class=
"button button2"
>
Favorites
</button>
<%
end
%>
</div>
</div>
...
...
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