% content_for :page_title do %>
<%= stack.repo_owner %>
<%= stack.repo_name %> <%= stack.environment %>
<% end %>
<% content_for :primary_navigation do %>
<%= link_to 'Refresh statuses & commits', stack_refresh_path(stack), method: 'post', class: "header__btn btn" %>
<% end %>
<% content_for :secondary_navigation do %>
-
<%= link_to "Commits & Deploys", stack_path(stack) %>
-
<%= link_to 'Settings', stack_settings_path(stack) %>
-
<%= link_to 'Timeline', index_stack_tasks_path(stack) %>
<% if stack.merge_queue_enabled? %>
-
<%= link_to "Merge Queue (#{stack.pull_requests.queued.count})", stack_pull_requests_path(stack) %>
<% end %>
<% if stack.task_definitions.present? %>
-
Tasks
<% stack.task_definitions.each do |definition| %>
-
<%= link_to "#{definition.action}…", new_stack_tasks_path(stack, definition_id: definition.id), class: "trigger-deploy" %>
<% end %>
<% end %>
<% if stack.links.present? %>
<% stack.links.each do |name, url| %>
-
<%= link_to name.humanize, url, :target => '_blank', :class => "#{name.dasherize}-url" %>
<% end %>
<% end %>
-
<%= link_to 'View on GitHub', github_repo_url(stack.repo_owner, stack.repo_name) %>
<% if stack.deploy_url.present? %>
-
<%= sanitize link_to 'View website', stack.deploy_url, :target => '_blank', :class => 'deploy-url' %>
<% end %>
<% end %>