Browse files

add lock icon

  • Loading branch information...
1 parent 128cec8 commit f33cd0317f168d8b4cface970848bf471d7a0285 @jweiss jweiss committed Mar 9, 2009
View
4 app/helpers/application_helper.rb
@@ -9,6 +9,10 @@ def error_flash(text)
render(:partial => 'layouts/flash_error', :locals => {:text => text})
end
+ def locking_flash(text)
+ render(:partial => 'layouts/flash_locking', :locals => {:text => text})
+ end
+
def flashed_errors(object_name)
obj = instance_variable_get("@#{object_name}")
return nil if obj.errors.blank?
View
2 app/views/deployments/new.html.erb
@@ -1,6 +1,6 @@
<% if current_stage.locked? %>
<% content_for(:flash_content) do %>
- <%= error_flash( render :partial => 'lock_info', :locals => {:stage => current_stage, :deployment => @deployment}) %>
+ <%= locking_flash( render :partial => 'lock_info', :locals => {:stage => current_stage, :deployment => @deployment}) %>
<% end %>
<% end %>
View
7 app/views/layouts/_flash_locking.html.erb
@@ -0,0 +1,7 @@
+<div class="flash_box">
+ <div class="flash_box_top"></div>
+ <div id="flash" class="flash_box_middle">
+ <div class="flash_text_locking"><%= text %></div>
+ </div>
+ <div class="flash_box_bottom"></div>
+</div>
View
7 app/views/stylesheets/application.html.erb
@@ -441,6 +441,13 @@ div.small_box_bottom {
background-position: 20px 0px;
}
+.flash_text_locking {
+ color: #A40008;
+ padding: 15px 5px 12px 70px;
+ background: url(<%= image_path('peritor_theme/locked.gif')%>) left center no-repeat;
+ background-position: 20px 0px;
+}
+
div.flash_box{
clear: both;
margin-top: 0px;
View
BIN public/images/peritor_theme/locked.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f33cd03

Please sign in to comment.