<% content_for :page_title do %>
  <span><%= stack.repo_owner %></span>
  <h1><%= stack.repo_name %> <%= stack.environment %></h1>
<% end %>


<% content_for :primary_navigation do %>
  <%= link_to 'Refresh statuses & commits', stack_refresh_path(@stack), method: 'post', class: "btn" %>
  <% @stack.task_definitions.each do |definition| %>
      <%= link_to "#{definition.action}…", new_stack_tasks_path(@stack, definition_id: definition.id), class: %w(stack-action btn trigger-deploy) %>
  <% end %>
<% end %>

<% content_for :secondary_navigation do %>
  <ul class="nav__list nav__list--primary">
    <li class="nav__list__item">
      <%= link_to "Commits & Deploys", stack_path(@stack) %>
    </li>
    <li class="nav__list__item">
      <%= link_to 'Settings', stack_settings_path(stack) %>
    </li>
  </ul>
  <ul class="nav__list nav__list--secondary">
    <li class="nav__list__item">
      <%= link_to 'View on GitHub', github_repo_url(stack.repo_owner, stack.repo_name) %>
    </li>
    <% if stack.deploy_url.present? %>
      <li class="nav__list__item">
        <%= link_to stack.deploy_url, stack.deploy_url, :target => '_blank', :class => 'deploy-url' %>
      </li>
    <% end %>
  </ul>
<% end %>

<% content_for :page_title do %>
  <span><%= stack.repo_owner %></span>
  <h1><%= stack.repo_name %> <%= stack.environment %></h1>
<% end %>


<% content_for :primary_navigation do %>
  <%= link_to 'Refresh statuses & commits', stack_refresh_path(@stack), method: 'post', class: "btn" %>
  <% @stack.task_definitions.each do |definition| %>
      <%= link_to "#{definition.action}…", new_stack_tasks_path(@stack, definition_id: definition.id), class: %w(stack-action btn trigger-deploy) %>
  <% end %>
<% end %>

<% content_for :secondary_navigation do %>
  <ul class="nav__list nav__list--primary">
    <li class="nav__list__item">
      <%= link_to "Commits & Deploys", stack_path(@stack) %>
    </li>
    <li class="nav__list__item">
      <%= link_to 'Settings', stack_settings_path(stack) %>
    </li>
  </ul>
  <ul class="nav__list nav__list--secondary">
    <li class="nav__list__item">
      <%= link_to 'View on GitHub', github_repo_url(stack.repo_owner, stack.repo_name) %>
    </li>
    <% if stack.deploy_url.present? %>
      <li class="nav__list__item">
        <%= link_to 'View website', stack.deploy_url, :target => '_blank', :class => 'deploy-url' %>
      </li>
    <% end %>
  </ul>
<% end %>

Replace the URL in the header by 'View website'
Replace the URL in the header by 'View website'
