deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [9/11] git commit: CIMI: Client frontend helper update for boostrap 2.0
Date Mon, 27 Feb 2012 16:44:47 GMT
CIMI: Client frontend helper update for boostrap 2.0


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/dd05afab
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/dd05afab
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/dd05afab

Branch: refs/heads/master
Commit: dd05afabb37242f5d34af4354654bf5320adebb5
Parents: 7d98349
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Thu Feb 23 14:51:42 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Fri Feb 24 16:40:02 2012 +0100

----------------------------------------------------------------------
 clients/cimi/lib/cimi_frontend_helper.rb |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/dd05afab/clients/cimi/lib/cimi_frontend_helper.rb
----------------------------------------------------------------------
diff --git a/clients/cimi/lib/cimi_frontend_helper.rb b/clients/cimi/lib/cimi_frontend_helper.rb
index 540acb9..5827089 100644
--- a/clients/cimi/lib/cimi_frontend_helper.rb
+++ b/clients/cimi/lib/cimi_frontend_helper.rb
@@ -26,13 +26,11 @@ module CIMI
       def flash_block_for(message_type)
         return unless flash[message_type]
         capture_haml do
-          haml_tag :div, :class => [ 'alert-message', message_type ] do
+          haml_tag :div, :class => [ 'alert', 'fade', 'in', message_type ] do
             haml_tag :a, :class => :close, :href => '#' do
               haml_concat 'x'
             end
-            haml_tag :p do
-              haml_concat flash[message_type]
-            end
+            haml_concat flash[message_type]
           end
         end
       end
@@ -51,15 +49,15 @@ module CIMI
       def boolean_span_for(bool)
         return bool if !bool.nil? and bool!='true' and bool!='false'
         capture_haml do
-          haml_tag :span, :class => [ 'label', bool.nil? ? '' : (bool===false) ? 'important'
: 'success' ] do
-            haml_concat bool.nil? ? 'not specified' : (bool===false) ? 'no' : 'yes'
+          haml_tag :span, :class => [ 'label', bool.nil? ? '' : (bool===false) ? 'label-important'
: 'label-success' ] do
+            haml_concat bool.nil? ? 'Not specified' : (bool===false) ? 'no' : 'yes'
           end
         end
       end
 
       def state_span_for(state)
         capture_haml do
-          haml_tag :span, :class => [ 'label', state=='STARTED' ? 'success' : 'important'
] do
+          haml_tag :span, :class => [ 'label', state=='STARTED' ? 'label-success' : 'label-important'
] do
             haml_concat state
           end
         end


Mime
View raw message