This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Added '(dev)' to the title in development mode (
#2524
)
* Added different title for dev * Changed indentation
master
Ashley
7 years ago
committed by
Eugen Rochko
parent
88725d6ce8
commit
1736badf28
2 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
app/helpers/application_helper.rb
+1
-1
app/views/layouts/application.html.haml
+ 4
- 0
app/helpers/application_helper.rb
View File
@ -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
+ 1
- 1
app/views/layouts/application.html.haml
View File
@ -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
Loading…
Cancel
Save