Sha256: dcbd20507203f7a08d8440c0edc3a0cc39d19667e3607e146f8137401140df11

Contents?: true

Size: 1.57 KB

Versions: 5

Compression:

Stored size: 1.57 KB

Contents

<% 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: "header__btn btn" %>
  <% stack.task_definitions.each do |definition| %>
      <%= link_to "#{definition.action}…", new_stack_tasks_path(stack, definition_id: definition.id), class: %w(header__btn 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>
    <li class="nav__list__item">
      <%= link_to 'Timeline', index_stack_tasks_path(stack) %>
    </li>
  </ul>
  <ul class="nav__list nav__list--secondary">
    <% if stack.links.present? %>
      <% stack.links.each do |name, url| %>
        <li class="nav__list__item">
          <%= link_to name.humanize, url, :target => '_blank', :class => "#{name.dasherize}-url" %>
        </li>
      <% end %>
    <% end %>
    <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">
        <%= sanitize link_to 'View website', stack.deploy_url, :target => '_blank', :class => 'deploy-url' %>
      </li>
    <% end %>
  </ul>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shipit-engine-0.15.0 app/views/shipit/stacks/_header.html.erb
shipit-engine-0.14.0 app/views/shipit/stacks/_header.html.erb
shipit-engine-0.13.0 app/views/shipit/stacks/_header.html.erb
shipit-engine-0.12.1 app/views/shipit/stacks/_header.html.erb
shipit-engine-0.12.0 app/views/shipit/stacks/_header.html.erb