<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,3 +3,4 @@ config/webistrano_config.rb
 tmp/*
 log/*
 *~
+.DS_Store</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -20,38 +20,12 @@
     &lt;% end %&gt;
   &lt;% end %&gt;
   
-  &lt;b&gt;Deployment Options&lt;b&gt;
-  &lt;div id=&quot;s_e_h&quot; style=&quot;padding-top: 5px;&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;show_disable_hosts(); return false&quot; class=&quot;arrow_link&quot;&gt;Show Manage Deployed Hosts&lt;/a&gt;&lt;/div&gt;
-  &lt;div id=&quot;excluded_hosts&quot; style=&quot;display:none;&quot;&gt;
-    &lt;% if @stage.roles.count &gt; 0 %&gt;
-      &lt;table class=&quot;sortable&quot; style=&quot;width: 410px;&quot;&gt;
-        &lt;tr&gt;
-          &lt;th width=&quot;1%&quot;&gt;Status&lt;/th&gt;
-          &lt;th width=&quot;99%&quot;&gt;Host&lt;/th&gt;
-        &lt;/tr&gt;
-        &lt;% for host in @stage.hosts.sort_by{|x| x.name} %&gt;
-          &lt;tr class=&quot;&lt;%= cycle :even, :odd, :name =&gt; 'hosts'  %&gt; &lt;%= if_disabled_host?(host,'disabled_host') %&gt;&quot;&gt;
-            &lt;td style=&quot;padding:3px 0px 0px 0px;&quot; valign=&quot;middle&quot; align=&quot;center&quot;&gt;
-              &lt;%= image_tag('peritor_theme/host_on.png', 
-                            :id =&gt; &quot;host_#{host.id}_on&quot;, 
-                            :class =&gt; 'exlcude_host_trigger_on',
-                            :style =&gt; if_disabled_host?(host,'display:none;') + 'cursor:pointer;')%&gt;
-              &lt;%= image_tag('peritor_theme/host_off.png', 
-                            :id =&gt; &quot;host_#{host.id}_off&quot;, 
-                            :class =&gt; 'exlcude_host_trigger_off',
-                            :style =&gt; if_enabled_host?(host,'display:none;') + 'cursor:pointer;')%&gt;
-              &lt;input style=&quot;display:none;&quot; type=&quot;checkbox&quot; value=&quot;&lt;%=h host.id %&gt;&quot; name=&quot;deployment[excluded_host_ids][]&quot; id=&quot;deployment_excluded_host_ids_&lt;%=h host.id %&gt;&quot; &lt;%= (@deployment.excluded_host_ids.include?(host.id) ? 'checked=&quot;checked&quot;' : ''  rescue '')%&gt;/&gt;&lt;/td&gt;
-            &lt;td&gt;&lt;%= link_to h(host.name), host_path(host) %&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;% end %&gt;
-      &lt;/table&gt;
-     &lt;% else %&gt;
-     No hosts for this stage!&lt;br /&gt;&lt;br /&gt;
-    &lt;% end %&gt;
-    &lt;br /&gt;
-  &lt;/div&gt;
-  &lt;div id=&quot;h_e_h&quot; style=&quot;display:none;&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;hide_disable_hosts(); return false&quot; class=&quot;arrow_link&quot;&gt;Hide Manage Deployed Hosts&lt;/a&gt;&lt;br&gt;&lt;/div&gt;
-  &lt;br&gt;
+  &lt;!-- hidden ids of hosts to exlude --&gt;
+  &lt;% for host in @stage.hosts.sort_by{|x| x.name} %&gt;
+    &lt;input style=&quot;display:none;&quot; type=&quot;checkbox&quot; value=&quot;&lt;%=h host.id %&gt;&quot; name=&quot;deployment[excluded_host_ids][]&quot; id=&quot;deployment_excluded_host_ids_&lt;%=h host.id %&gt;&quot; &lt;%= (@deployment.excluded_host_ids.include?(host.id) ? 'checked=&quot;checked&quot;' : ''  rescue '')%&gt;/&gt;&lt;/td&gt;
+  &lt;% end %&gt;
+  
+  &lt;br /&gt;
   &lt;p&gt;
     &lt;%= submit_tag &quot;Start Deployment&quot; %&gt;
   &lt;/p&gt;
@@ -61,18 +35,6 @@
 
 &lt;% content_for(:page_scripts) do %&gt;
   &lt;script type=&quot;text/javascript&quot;&gt;
- 
-    function show_disable_hosts(){
-      $('h_e_h').show();
-      $('s_e_h').hide();
-      $('excluded_hosts').show();
-    }
-   
-    function hide_disable_hosts(){
-      $('h_e_h').hide();
-      $('s_e_h').show();
-      $('excluded_hosts').hide();
-    }
     
     function disable_host(){
       var own_id = /host_(\d)_on/.exec(this.id)[1];
@@ -94,11 +56,7 @@
       $(this).up('tr').addClassName('enabled_host');
     }
     
-    Event.observe(window, 'load', function(){
-      &lt;% unless @deployment.excluded_host_ids.blank? %&gt;
-        show_disable_hosts();
-      &lt;% end %&gt;
-      
+    Event.observe(window, 'load', function(){    
       $$('img.exlcude_host_trigger_on').each(function(el){
         el.observe('click', disable_host);
       });
@@ -115,8 +73,30 @@
 &lt;div class=&quot;small_box&quot;&gt;
   &lt;div class=&quot;small_box_top&quot;&gt;&lt;/div&gt;
   &lt;div class=&quot;small_box_middle&quot;&gt;
-		 &lt;h3&gt;Effective configuration:&lt;/h3&gt;
-		  Hosts&lt;br&gt;&lt;br&gt;Recipies&lt;br&gt;&lt;br&gt;Config&lt;br&gt;&lt;br&gt;Bla
+		 &lt;h3&gt;Deploying hosts&lt;/h3&gt;
+		  &lt;% if @stage.roles.count &gt; 0 %&gt;
+		    &lt;form name=&quot;excluded_hosts_form&quot; id=&quot;excluded_hosts_form&quot;&gt;
+          &lt;table style=&quot;width: 210px;&quot;&gt;
+            &lt;% for host in @stage.hosts.sort_by{|x| x.name} %&gt;
+              &lt;tr class=&quot;&lt;%= if_disabled_host?(host,'disabled_host') %&gt;&quot;&gt;
+                &lt;td style=&quot;padding:3px 0px 0px 0px;&quot; valign=&quot;middle&quot; align=&quot;center&quot;&gt;
+                  &lt;%= image_tag('peritor_theme/checkbox_on.gif', 
+                                :id =&gt; &quot;host_#{host.id}_on&quot;, 
+                                :class =&gt; 'exlcude_host_trigger_on',
+                                :style =&gt; if_disabled_host?(host,'display:none;') + 'cursor:pointer;')%&gt;
+                  &lt;%= image_tag('peritor_theme/checkbox_off.gif', 
+                                :id =&gt; &quot;host_#{host.id}_off&quot;, 
+                                :class =&gt; 'exlcude_host_trigger_off',
+                                :style =&gt; if_enabled_host?(host,'display:none;') + 'cursor:pointer;')%&gt;
+                &lt;/td&gt;
+                &lt;td&gt;&lt;%= link_to h(host.name), host_path(host) %&gt;&lt;/td&gt;
+              &lt;/tr&gt;
+            &lt;% end %&gt;
+          &lt;/table&gt;
+        &lt;/form&gt;
+       &lt;% else %&gt;
+       No hosts for this stage!&lt;br /&gt;&lt;br /&gt;
+      &lt;% end %&gt;
   &lt;/div&gt;
   &lt;div class=&quot;small_box_bottom&quot;&gt;&lt;/div&gt;
 &lt;/div&gt;</diff>
      <filename>app/views/deployments/new.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -6,14 +6,14 @@
 &lt;% else %&gt;
   &lt;table class=&quot;sortable&quot;&gt;
     &lt;tr&gt;
-      &lt;th width=&quot;30%&quot;&gt;Name&lt;/th&gt;
-      &lt;th width=&quot;69%&quot;&gt;Value&lt;/th&gt;
+      &lt;th width=&quot;1%&quot;&gt;Name&lt;/th&gt;
+      &lt;th width=&quot;98%&quot;&gt;Value&lt;/th&gt;
       &lt;th width=&quot;1%&quot;&gt;Prompt?&lt;/th&gt;
     &lt;/tr&gt;
   &lt;% for config in @project.configuration_parameters %&gt;
     &lt;tr class=&quot;&lt;%= cycle :even, :odd, :name =&gt; 'configs' %&gt;&quot;&gt;
       &lt;td title=&quot;&lt;%=h config.name %&gt;&quot;&gt;&lt;%= truncate(h(config.name), 25) %&gt;&lt;/td&gt;
-      &lt;td title=&quot;&lt;%=h config.value %&gt;&quot;&gt;&lt;%=h truncate(hide_password_in_value(config), 40) %&gt;&lt;/td&gt;
+      &lt;td title=&quot;&lt;%=h config.value %&gt;&quot;&gt;&lt;%=h truncate(hide_password_in_value(config), 45) %&gt;&lt;/td&gt;
       &lt;td&gt;&lt;%= config.prompt_status_in_html %&gt;&lt;/td&gt;
       &lt;td&gt;&lt;%= link_to 'Edit', edit_project_project_configuration_path(@project, config) %&gt;&lt;/td&gt;
       &lt;td&gt;&lt;%= link_to 'Delete', project_project_configuration_path(@project, config), :confirm =&gt; 'Are you sure?', :method =&gt; :delete %&gt;&lt;/td&gt;</diff>
      <filename>app/views/projects/_configs.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -7,14 +7,14 @@
 &lt;% else %&gt;
   &lt;table class=&quot;sortable&quot;&gt;
     &lt;tr&gt;
-      &lt;th width=&quot;22%&quot;&gt;Name&lt;/th&gt;
-      &lt;th width=&quot;77%&quot;&gt;Value&lt;/th&gt;
+      &lt;th width=&quot;1%&quot;&gt;Name&lt;/th&gt;
+      &lt;th width=&quot;98%&quot;&gt;Value&lt;/th&gt;
       &lt;th width=&quot;1%&quot;&gt;Prompt?&lt;/th&gt;
     &lt;/tr&gt;
   &lt;% for config in @stage.configuration_parameters %&gt;
     &lt;tr class=&quot;&lt;%= cycle :even, :odd, :name =&gt; 'configs' %&gt;&quot;&gt;
       &lt;td title=&quot;&lt;%=h config.name %&gt;&quot;&gt;&lt;%= truncate(h(config.name), 25) %&gt;&lt;/td&gt;
-      &lt;td title=&quot;&lt;%=h config.value %&gt;&quot;&gt;&lt;%=h truncate(hide_password_in_value(config), 40) %&gt;&lt;/td&gt;
+      &lt;td title=&quot;&lt;%=h config.value %&gt;&quot;&gt;&lt;%=h truncate(hide_password_in_value(config), 45) %&gt;&lt;/td&gt;
       &lt;td&gt;&lt;%= config.prompt_status_in_html %&gt;&lt;/td&gt;
       &lt;td&gt;&lt;%= link_to 'Edit', edit_project_stage_stage_configuration_path(@project, @stage, config) %&gt;&lt;/td&gt;
       &lt;td&gt;&lt;%= link_to 'Delete', project_stage_stage_configuration_path(@project, @stage, config), :confirm =&gt; 'Are you sure?', :method =&gt; :delete %&gt;&lt;/td&gt;</diff>
      <filename>app/views/stages/_configs.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -9,13 +9,13 @@
   &lt;table class=&quot;sortable&quot;&gt;
     &lt;tr&gt;
       &lt;th width=&quot;1%&quot;&gt;Name&lt;/th&gt;
-      &lt;th width=&quot;1%&quot;&gt;Value&lt;/th&gt;
+      &lt;th width=&quot;98%&quot;&gt;Value&lt;/th&gt;
       &lt;th width=&quot;1%&quot;&gt;Prompt&lt;/th&gt;
     &lt;/tr&gt;
   &lt;% @stage.effective_configuration.each do |conf| %&gt;
     &lt;tr class=&quot;&lt;%= cycle :even, :odd, :name =&gt; 'effective_conf' %&gt;&quot;&gt;
       &lt;td title=&quot;&lt;%=h conf.name %&gt;&quot;&gt;&lt;%= truncate(h(conf.name), 25) %&gt;&lt;/td&gt;
-      &lt;td title=&quot;&lt;%=h conf.value %&gt;&quot;&gt;&lt;%=h truncate(hide_password_in_value(conf), 40) %&gt;&lt;/td&gt;
+      &lt;td title=&quot;&lt;%=h conf.value %&gt;&quot;&gt;&lt;%=h truncate(hide_password_in_value(conf), 45) %&gt;&lt;/td&gt;
       &lt;td&gt;&lt;%= conf.prompt_status_in_html %&gt;&lt;/td&gt;
     &lt;/tr&gt;
   &lt;% end %&gt;</diff>
      <filename>app/views/stages/_effective_config.html.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c9a5f7dfe8fdd6021702c4681e37d17e2f055e1e</id>
    </parent>
  </parents>
  <author>
    <name>Jonathan Weiss</name>
    <email>jw@innerewut.de</email>
  </author>
  <url>http://github.com/timshadel/webistrano/commit/66a0de31d6686c98fdcec2c7f3a72a7e83124725</url>
  <id>66a0de31d6686c98fdcec2c7f3a72a7e83124725</id>
  <committed-date>2008-09-25T15:39:48-07:00</committed-date>
  <authored-date>2008-09-25T15:39:48-07:00</authored-date>
  <message>small layout fixes and fix the exclude hosts list on new deployments

git-svn-id: http://labs.peritor.com/svn/webistrano/trunk@161 e1153f85-6c6c-dc11-afa8-0013d3c39b19</message>
  <tree>90dbe188551f4a8278e0d1a3cea147e93fb1d675</tree>
  <committer>
    <name>Jonathan Weiss</name>
    <email>jw@innerewut.de</email>
  </committer>
</commit>
