forked from zendesk/samson
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request zendesk#635 from zendesk/grosser/all
deploy all stages to a single group
- Loading branch information
Showing
12 changed files
with
207 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<h1>Deploy to <%= @deploy_group.name %></h1> | ||
|
||
<%= form_tag deploy_all_now_admin_deploy_group_path(@deploy_group) do %> | ||
<section class="clearfix"> | ||
<div class="table table-hover table-condensed"> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th>Project</th> | ||
<th>Stage</th> | ||
<th>Reference</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
<% @stages.each do |stage, deploy| %> | ||
<tr> | ||
<td><%= check_box_tag 'stages[]', "#{stage.id}-#{deploy.reference}" %></td> | ||
<td><%= link_to stage.project.name, stage.project %></td> | ||
<td><%= link_to stage.name, [stage.project, stage] %></td> | ||
<td><%= deploy.reference %> (<%= time_ago_in_words deploy.created_at %> ago)</td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<div class="admin-actions"> | ||
<div class="pull-right"> | ||
<%= submit_tag "Deploy", class: "btn btn-default" %> | ||
</div> | ||
</div> | ||
</section> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<%= render 'projects/header', project: @project, tab: "deploys" %> | ||
<%= render 'projects/header', project: @project, tab: "deploys" if @project %> | ||
|
||
<%= render 'shared/deploys_table' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters