mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
remove custom solution to visually show that you are running in development
environment and replace with rack-dev-mark gem
This commit is contained in:
parent
14ed010f7c
commit
5ed2de3ab0
5 changed files with 2 additions and 9 deletions
1
Gemfile
1
Gemfile
|
|
@ -31,6 +31,7 @@ gem "htmlentities"
|
||||||
gem "swf_fu"
|
gem "swf_fu"
|
||||||
gem "rails_autolink"
|
gem "rails_autolink"
|
||||||
gem "cache_digests"
|
gem "cache_digests"
|
||||||
|
gem "rack-dev-mark"
|
||||||
|
|
||||||
# To use ActiveModel has_secure_password
|
# To use ActiveModel has_secure_password
|
||||||
gem 'bcrypt', '~> 3.1.7'
|
gem 'bcrypt', '~> 3.1.7'
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
|
|
@ -277,12 +277,6 @@ a.show_successors:hover, a.link_to_successors:hover {background-image: image-url
|
||||||
a:hover { color: #CCC; }
|
a:hover { color: #CCC; }
|
||||||
}
|
}
|
||||||
|
|
||||||
#develop-notify-bar {
|
|
||||||
line-height:0.5;
|
|
||||||
background-image: image-url('construction.gif');
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
}
|
|
||||||
|
|
||||||
#topbar {
|
#topbar {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,6 @@
|
||||||
<body class="<%= controller.controller_name %>">
|
<body class="<%= controller.controller_name %>">
|
||||||
|
|
||||||
<div id="topbar">
|
<div id="topbar">
|
||||||
<%= NOTIFY_BAR.html_safe %>
|
|
||||||
|
|
||||||
<div id="date">
|
<div id="date">
|
||||||
<h1>
|
<h1>
|
||||||
<% if @count -%>
|
<% if @count -%>
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,6 @@ Rails.application.configure do
|
||||||
# config.action_controller.session_store :cookie_store, :key => 'TracksCucumber'
|
# config.action_controller.session_store :cookie_store, :key => 'TracksCucumber'
|
||||||
# config.action_controller.session = { :key => 'TracksDev' }
|
# config.action_controller.session = { :key => 'TracksDev' }
|
||||||
|
|
||||||
NOTIFY_BAR="<div id=\"develop-notify-bar\"> </div>"
|
config.rack_dev_mark.enable = true
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue