Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob_nth
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
Ngô Trung Hưng
venjob_nth
Commits
b3918678
Commit
b3918678
authored
Sep 18, 2020
by
Ngô Trung Hưng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
meta tag
parent
a4297627
Pipeline
#1107
failed with stages
in 0 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
app/controllers/application_controller.rb
+7
-1
app/views/layouts/application.html.erb
+2
-0
config/locales/en.yml
+3
-0
config/locales/vn.yml
+3
-2
No files found.
app/controllers/application_controller.rb
View file @
b3918678
...
@@ -5,7 +5,13 @@ class ApplicationController < ActionController::Base
...
@@ -5,7 +5,13 @@ class ApplicationController < ActionController::Base
protect_from_forgery
with: :exception
protect_from_forgery
with: :exception
before_action
:configure_permitted_parameters
,
if: :devise_controller?
before_action
:configure_permitted_parameters
,
if: :devise_controller?
before_action
:set_locale
before_action
:set_locale
,
:prepare_meta_tag
def
prepare_meta_tag
@tag
=
{}
@tag
[
:description
]
=
t
(
'meta.description'
)
@tag
[
:keys
]
=
t
(
'meta.keys'
)
end
def
set_locale
def
set_locale
locale
=
(
user_signed_in?
?
current_user
.
language
:
params
[
:locale
].
to_s
.
strip
).
to_sym
locale
=
(
user_signed_in?
?
current_user
.
language
:
params
[
:locale
].
to_s
.
strip
).
to_sym
...
...
app/views/layouts/application.html.erb
View file @
b3918678
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
<%=
csrf_meta_tags
%>
<%=
csrf_meta_tags
%>
<%=
csp_meta_tag
%>
<%=
csp_meta_tag
%>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"description"
content=
"
<%=
@tag
[
:description
]
%>
"
>
<meta
name=
"keywords"
content=
"
<%=
@tag
[
:keys
]
%>
"
>
<%=
stylesheet_link_tag
'application'
,
media:
'all'
,
'data-turbolinks-track'
:
'reload'
%>
<%=
stylesheet_link_tag
'application'
,
media:
'all'
,
'data-turbolinks-track'
:
'reload'
%>
<%=
javascript_include_tag
'application'
,
'data-turbolinks-track'
:
'reload'
%>
<%=
javascript_include_tag
'application'
,
'data-turbolinks-track'
:
'reload'
%>
<%=
render
'shared/shim'
%>
<%=
render
'shared/shim'
%>
...
...
config/locales/en.yml
View file @
b3918678
...
@@ -153,3 +153,6 @@ en:
...
@@ -153,3 +153,6 @@ en:
pagination
:
pagination
:
last
:
'
Last'
last
:
'
Last'
first
:
'
First'
first
:
'
First'
meta
:
description
:
'
Platform
human
resource
recruitment
platform
in
Vietnam.
Prestige
quality
ahihi.
This
ia
the
VENJOB'
keys
:
'
Recruitment,
job,
find
a
job,
high
salary,
close
to
home,
good
job,
quick
job
search,
fast
job
search,
job
search,
venjob'
config/locales/vn.yml
View file @
b3918678
...
@@ -153,4 +153,6 @@ vi:
...
@@ -153,4 +153,6 @@ vi:
pagination
:
pagination
:
last
:
'
Cuối'
last
:
'
Cuối'
first
:
'
Đầu'
first
:
'
Đầu'
meta
:
\ No newline at end of file
description
:
'
Nền
tảng
tuyển
dụng
nhân
sự
hàng
đầu
Việt
Nam.
Uy
tín
chất
lượng
ahihi.
Đó
là
VẸNOB'
keys
:
'
Tuyển
dụng,
việc
làm,
tìm
việc,
lương
cao,
gần
nhà,
việc
làm
tốt,
tim
viec
nhanh,
tim
viec
lam
nhanh,
kiếm
việc,
venjob'
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