<%= link_to 'Deploy', new_project_stage_deployment_path(current_project, @stage) + '?task=deploy', :class => 'arrow_link' %>

<%= link_to 'Deploy and migrate', new_project_stage_deployment_path(current_project, @stage) + '?task=deploy:migrations', :class => 'arrow_link' %>

<%= link_to 'Restart app servers', new_project_stage_deployment_path(current_project, @stage) + '?task=deploy:restart', :class => 'arrow_link' %>

<%= link_to 'Setup', new_project_stage_deployment_path(current_project, @stage) + '?task=deploy:setup', :class => 'arrow_link' %>

<%= select_tag('task', options_for_select(@task_list)) %>

<%= link_to 'Execute', new_project_stage_deployment_path(current_project, @stage), :class => 'arrow_link', :onclick => "location.href='#{new_project_stage_deployment_path(current_project, @stage)}?task=' + $F('task'); return false" %> | <%= link_to 'Info', tasks_project_stage_path(current_project, @stage), :class => 'arrow_link', :onclick => "location.href='#{tasks_project_stage_path(current_project, @stage)}#' + $F('task'); return false" %>

Name: <%=h @stage.name %>

Project: <%= link_to h(@stage.project.name), project_url(current_project) %>

Alert on deploy: <%=h @stage.alert_emails %>

#Hosts: <%=h @stage.hosts.count %>


<%= link_to 'Edit stage', edit_project_stage_path(current_project, @stage), :class => 'arrow_link' %> | <%= link_to 'Delete stage', project_stage_path(current_project, @stage), :confirm => 'Are you sure?', :method => :delete, :class => 'arrow_link' %> | <%= link_to 'Export capfile', {:action => 'capfile', :project_id => current_project, :id => @stage}, {:onclick => "loadWindow('#{url_for(:action => 'capfile', :project_id => current_project, :id => @stage)}'); return false", :class => 'arrow_link'} %>

Stage specific configuration <%= render(:partial => 'configs')%>
<%= link_to 'New configuration', new_project_stage_stage_configuration_path(current_project, @stage), :class => 'arrow_link' %> | Show effective configuration


Used recipes <%= render(:partial => 'recipes')%>
<%= link_to 'Manage stage recipes', {:action => 'recipes', :project_id => current_project, :id => @stage} , :class => 'arrow_link'%>


Deployed hosts <%= render(:partial => 'roles')%>
<%= link_to 'Add host', new_project_stage_role_path(current_project, @stage) , :class => 'arrow_link'%>


Recent deployment history <%= render(:partial => 'deployments')%>

<% content_for(:page_scripts) do %> <% end %> <% content_for(:breadcrumb) do %> <% breadcrumb_box do %> <%= link_to "Back to project", project_path(@project), :style => "float:right", :class => "arrow_link" %> <%= link_to "Projects", projects_path %> > Project <%= link_to current_project.name, project_path(current_project) %> > Stage <%= link_to current_stage.name, project_stage_path(current_project, current_stage) %> <% end %> <% end %> <% content_for(:page_title) do %> <% @page_title = "Project #{h(current_project.name)} - Stage #{h(@stage.name)}"%>

Stage <%= link_to h(@stage.name), project_stage_path(current_project, @stage) %>

<% end %>