<%= 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 %>