<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -73,20 +73,7 @@ class Deployment &lt; ActiveRecord::Base
   def status_in_html
     &quot;&lt;span class='deployment_status_#{self.status.gsub(/ /, '_')}'&gt;#{self.status}&lt;/span&gt;&quot;
   end
-  
-  def status_image
-    case self.status
-    when 'running'
-      'status_running_small.gif'
-    when 'failed'
-      'status_failed_small.png'
-    when 'success'
-      'status_success_small.png'
-    when 'canceled'
-      'status_canceled_small.png'
-    end
-  end
-  
+
   def complete_with_error!
     save_completed_status!(STATUS_FAILED)
     notify_per_mail</diff>
      <filename>app/models/deployment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,33 +6,11 @@
     This stage was never deployed. 
   &lt;br/&gt;
 &lt;% else %&gt;
-  &lt;br /&gt;
-    This stage was deployed &lt;%=h @stage.deployments.count %&gt; times.
-  &lt;br /&gt;&lt;br /&gt;
-  &lt;table class=&quot;sortable&quot;&gt;
-    &lt;tr&gt;
-      &lt;th&gt;Task&lt;/th&gt;
-      &lt;th&gt;Started&lt;br /&gt;Completed&lt;/th&gt;
-      &lt;th style=&quot;width:200px;&quot;&gt;Comment&lt;/th&gt;
-      &lt;th&gt;User&lt;/th&gt;
-      &lt;th&gt;Status&lt;/th&gt;
-    &lt;/tr&gt;
-  &lt;% for deployment in @stage.deployments %&gt;
-    &lt;tr class=&quot;&lt;%= cycle :even, :odd, :name =&gt; 'deployments' %&gt;&quot;&gt;
-      &lt;td&gt;&lt;%= link_to h(deployment.task), project_stage_deployment_path(current_project, current_stage, deployment) %&gt;&lt;/td&gt;
-      &lt;td&gt;&lt;%=h deployment.created_at.to_s(:log)  %&gt;&lt;br /&gt;&lt;%=h deployment.completed_at.to_s(:log) rescue '&amp;nbsp;' %&gt;&lt;/td&gt;
-      &lt;td&gt;&lt;%=h truncate(deployment.description, 37) %&gt;&lt;/td&gt;
-      &lt;td&gt;&lt;%= user_info(deployment.user) rescue '' %&gt;&lt;/td&gt;
-      &lt;td&gt;&lt;%= image_tag('peritor_theme/'+deployment.status_image)%&gt;&lt;/td&gt;
-      &lt;td&gt;
-        &lt;% if deployment.completed? %&gt;
-          &lt;%= link_to &quot;Repeat&quot;, new_project_stage_deployment_path(deployment.stage.project, deployment.stage) + '?repeat=' + h(deployment.id) %&gt;
-      	&lt;% end %&gt;
-      &lt;/td&gt;
-    &lt;/tr&gt;
+  &lt;% @stage.deployments.each do |deployment| %&gt;
+    &lt;%= render(:partial =&gt; 'deployments/list_item', :locals =&gt; {:deployment =&gt; deployment}) %&gt;
   &lt;% end %&gt;
-  &lt;/table&gt;
 &lt;% end %&gt;
+&lt;br /&gt;
 
 &lt;/fieldset&gt;
 </diff>
      <filename>app/views/deployments/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -8,12 +8,12 @@
   &lt;% end %&gt;
 &lt;% end %&gt;
 &lt;br /&gt;
-  &lt;% if @stage.deployment_possible? %&gt;
-    &lt;%= link_to 'New deployment', new_project_stage_deployment_path(current_project, @stage), :class =&gt; 'arrow_link' %&gt; &lt;%= (@stage.deployments.count &gt; 1) ? '|' : '' %&gt;
-  &lt;% else %&gt;
-    A deployment is currently not possible:&lt;br /&gt;
-    &lt;%= display_deployment_problems(@stage) %&gt;
-  &lt;% end %&gt;
-  &lt;% if @stage.deployments.count &gt; 1 %&gt;
-    &lt;%= link_to &quot;Complete deployment history&quot;, project_stage_deployments_path(current_project, @stage), :class =&gt; 'arrow_link' %&gt;
-  &lt;% end %&gt;
+&lt;% if @stage.deployment_possible? %&gt;
+  &lt;%= link_to 'New deployment', new_project_stage_deployment_path(current_project, @stage), :class =&gt; 'arrow_link' %&gt; &lt;%= (@stage.deployments.count &gt; 1) ? '|' : '' %&gt;
+&lt;% else %&gt;
+  A deployment is currently not possible:&lt;br /&gt;
+  &lt;%= display_deployment_problems(@stage) %&gt;
+&lt;% end %&gt;
+&lt;% if @stage.deployments.count &gt; 1 %&gt;
+  &lt;%= link_to &quot;Complete deployment history&quot;, project_stage_deployments_path(current_project, @stage), :class =&gt; 'arrow_link' %&gt;
+&lt;% end %&gt;</diff>
      <filename>app/views/stages/_deployments.html.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2e8e8f153f58588536a37f5f4ed1cdafcbb95525</id>
    </parent>
  </parents>
  <author>
    <name>Jonathan Weiss</name>
    <email>jw@innerewut.de</email>
  </author>
  <url>http://github.com/timshadel/webistrano/commit/76b00ded89f7c92eed1883b412fa4c801a3b9df4</url>
  <id>76b00ded89f7c92eed1883b412fa4c801a3b9df4</id>
  <committed-date>2008-10-06T05:11:48-07:00</committed-date>
  <authored-date>2008-10-06T05:11:48-07:00</authored-date>
  <message>fix #100 

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