<%= image_tag('peritor_theme/status_' + @deployment.status + '.gif', :title => @deployment.status) %>
Status: <%=h @deployment.status %> <% if @deployment.cancelling_possible? %>     <%= link_to "Cancel", cancel_project_stage_deployment_path(current_project, current_stage, @deployment), :confirm => "Are you sure? Killing this deployment will not cleanup and rollback.", :method => "post", :class => 'arrow_link' %> <% end %> <% if @deployment.completed? %>     <%= link_to "Repeat", new_project_stage_deployment_path(current_project, current_stage) + '?repeat=' + h(@deployment.id), :class => 'arrow_link' %> <% end %>

Task: <%=h @deployment.task %>

Stage: <%= link_to @deployment.stage.name, project_stage_path(@project, @stage) %>

Deployed by: <%= user_info(@deployment.user) rescue '' %>

Revision: <%= @deployment.revision %>

Started: <%=h @deployment.created_at.to_s(:log) %> (<%=h current_user.time_zone rescue 'UTC' %>)

Completed: <%=h "#{@deployment.completed_at.to_s(:log)} (#{current_user.time_zone})" rescue nil %>


Comment <%=web_friendly_text @deployment.description %>


Log
>
<%=h @deployment.log.gsub('\n', "\n") rescue '' %>

<%= link_to_function 'Scroll to top', "scroll_to_top()", :class => 'arrow_link' %> | <%= link_to 'Back to stage', project_stage_path(@project, @stage), :class => 'arrow_link', :id => 'back_link_at_the_bottom' %> <%= image_tag('peritor_theme/status_' + @deployment.status + '_small.gif', :title => @deployment.status, :width => 20, :heigth => 15, :style => 'vertical-align:middle;') %> Status: <%=h @deployment.status %> <% if @deployment.completed? %>     <%= link_to "Repeat", new_project_stage_deployment_path(current_project, current_stage) + '?repeat=' + h(@deployment.id), :class => 'arrow_link' %> <% end %> <% if @deployment.cancelling_possible? %>     <%= link_to "Cancel", cancel_project_stage_deployment_path(current_project, current_stage, @deployment), :confirm => "Are you sure? Killing this deployment will not cleanup and rollback.", :method => "post", :class => 'arrow_link' %> <% end %>
<% unless @deployment.completed? %> <% end %>