Created
March 4, 2011 10:47
-
-
Save djgraham/854454 to your computer and use it in GitHub Desktop.
Shove a quick black banner at the top of your page when you're on a server other than production...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% if Rails.env != "production" %> | |
| <div id="staging-server" style="background: #000; text-align: center; color: #FFF; font-size: 16px; font-weight: bold; text-transform: none; padding: 10px 0;">You are currently using the <%= Rails.env.capitalize %> server</div> | |
| <% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment