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
Nguyen Hoang Mai Phuong
VeNJOB
Commits
7c86d4ed
Commit
7c86d4ed
authored
Aug 12, 2021
by
Nguyen Hoang Mai Phuong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix style code in view and refactor code
parent
f17e21bc
Pipeline
#1390
failed with stages
in 0 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
17 deletions
+3
-17
app/helpers/application_helper.rb
+1
-3
app/views/apply_jobs/new.html.slim
+1
-1
db/migrate/20210809075523_remove_cv_from_apply_jobs.rb
+1
-1
test/mailers/apply_job_mailer_test.rb
+0
-12
No files found.
app/helpers/application_helper.rb
View file @
7c86d4ed
...
@@ -12,8 +12,6 @@ module ApplicationHelper
...
@@ -12,8 +12,6 @@ module ApplicationHelper
end
end
def
current_page?
(
*
paths
)
def
current_page?
(
*
paths
)
return
true
if
paths
.
include?
(
request
.
path
)
paths
.
include?
(
request
.
path
)
false
end
end
end
end
app/views/apply_jobs/new.html.slim
View file @
7c86d4ed
...
@@ -6,7 +6,7 @@ h2.text-center.form-title
...
@@ -6,7 +6,7 @@ h2.text-center.form-title
=
render
'shared/error_messages'
=
render
'shared/error_messages'
=
f
.
hidden_field
:job_id
=
f
.
hidden_field
:job_id
=
f
.
label
:name
=
f
.
label
:name
=
f
.
text_field
:name
,
required:
true
,
length:
{
maximum:
200
},
placeholder:
"Type name..."
,
class:
'form-control'
=
f
.
text_field
:name
,
required:
true
,
length:
{
maximum:
200
},
placeholder:
"Type name..."
,
class:
'form-control'
=
f
.
label
:email
=
f
.
label
:email
=
f
.
text_field
:email
,
required:
true
,
length:
{
maximum:
255
},
format:
{
with:
ApplyJob
::
VALID_EMAIL_REGEX
},
placeholder:
"Type email..."
,
class:
'form-control'
=
f
.
text_field
:email
,
required:
true
,
length:
{
maximum:
255
},
format:
{
with:
ApplyJob
::
VALID_EMAIL_REGEX
},
placeholder:
"Type email..."
,
class:
'form-control'
...
...
db/migrate/20210809075523_remove_cv_from_apply_jobs.rb
View file @
7c86d4ed
class
RemoveCvFromApplyJobs
<
ActiveRecord
::
Migration
[
6.1
]
class
RemoveCvFromApplyJobs
<
ActiveRecord
::
Migration
[
6.1
]
def
change
def
change
remove_column
:apply_jobs
,
:cv
,
:binary
remove_column
:apply_jobs
,
:cv
end
end
end
end
test/mailers/apply_job_mailer_test.rb
deleted
100644 → 0
View file @
f17e21bc
require
"test_helper"
class
ApplyJobMailerTest
<
ActionMailer
::
TestCase
test
"create_apply"
do
mail
=
ApplyJobMailer
.
create_apply
assert_equal
"Create apply"
,
mail
.
subject
assert_equal
[
"to@example.org"
],
mail
.
to
assert_equal
[
"from@example.com"
],
mail
.
from
assert_match
"Hi"
,
mail
.
body
.
encoded
end
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