%= render partial: 'shipit/stacks/header', locals: { stack: @stack } %>
<%= button_to "Clear Git Cache", stack_clear_git_cache_path(@stack), class: "btn", method: "post" %> | Delete the local git mirror in case it's in a bad state. |
This action will de-archive the Stack, restoring it in the stack list and unlocking it.
<%= form_with scope: :stack, url: stack_path(@stack), method: :patch do |f| %> <%= f.hidden_field :archived, value: false %> <%= f.submit class: "btn", value: "Restore" %> <% end %> <% else %>This action will archive the Stack, hiding it from the stack list and locking it. It can still be found if you know the URL and de-archived.
<%= form_with scope: :stack, url: stack_path(@stack), method: :patch do |f| %> <%= f.hidden_field :archived, value: true %> <%= f.submit class: "btn", value: "Archive" %> <% end %> <% end %>This action will delete the stack from Ship it permanently. Be careful.
<%= button_to "Delete…", stack_path(@stack), class: 'btn btn--delete', data: {confirm: 'Are you sure?'}, method: :delete %>