Skip to content
Snippets Groups Projects
Commit 1736badf authored by Ashley's avatar Ashley Committed by Eugen Rochko
Browse files

Added '(dev)' to the title in development mode (#2524)

* Added different title for dev

* Changed indentation
parent 88725d6c
Branches
No related tags found
No related merge requests found
......@@ -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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment