mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 12:05:07 +01:00
Added '(dev)' to the title in development mode (#2524)
* Added different title for dev * Changed indentation
This commit is contained in:
parent
88725d6ce8
commit
1736badf28
@ -18,4 +18,8 @@ module ApplicationHelper
|
|||||||
env_suffix = Rails.env.production? ? '' : '-dev'
|
env_suffix = Rails.env.production? ? '' : '-dev'
|
||||||
asset_path "favicon#{env_suffix}.ico"
|
asset_path "favicon#{env_suffix}.ico"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def title
|
||||||
|
Rails.env.production? ? site_title : "#{site_title} (Dev)"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
- if content_for?(:page_title)
|
- if content_for?(:page_title)
|
||||||
= yield(:page_title)
|
= yield(:page_title)
|
||||||
= ' - '
|
= ' - '
|
||||||
= site_title
|
= title
|
||||||
|
|
||||||
= stylesheet_link_tag stylesheet_for_layout, media: 'all'
|
= stylesheet_link_tag stylesheet_for_layout, media: 'all'
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
|
Loading…
Reference in New Issue
Block a user