Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
mamot
Commits
1736badf
Commit
1736badf
authored
Apr 28, 2017
by
Ashley
Committed by
Eugen Rochko
Apr 27, 2017
Browse files
Added '(dev)' to the title in development mode (#2524)
* Added different title for dev * Changed indentation
parent
88725d6c
Changes
2
Show whitespace changes
Inline
Side-by-side
app/helpers/application_helper.rb
View file @
1736badf
...
...
@@ -18,4 +18,8 @@ module ApplicationHelper
env_suffix
=
Rails
.
env
.
production?
?
''
:
'-dev'
asset_path
"favicon
#{
env_suffix
}
.ico"
end
def
title
Rails
.
env
.
production?
?
site_title
:
"
#{
site_title
}
(Dev)"
end
end
app/views/layouts/application.html.haml
View file @
1736badf
...
...
@@ -17,7 +17,7 @@
-
if
content_for?
(
:page_title
)
=
yield
(
:page_title
)
=
' - '
=
site_
title
=
title
=
stylesheet_link_tag
stylesheet_for_layout
,
media:
'all'
=
csrf_meta_tags
...
...
Write
Preview
Supports
Markdown
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