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.
- Loading branch information
Showing
5 changed files
with
209 additions
and
261 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<label class="col-lg-2 control-label">Mass Rollout</label> | ||
<div class="col-lg-10"> | ||
<%= form_tag deploy_deploy_group_mass_rollouts_path(@deploy_group) do %> | ||
|
||
<% if defined?(SamsonKubernetes::Engine) %> | ||
<div class="form-group"> | ||
<div class="col-lg-10"> | ||
<label>Kubernetes</label> | ||
<div class="form-group"> | ||
<div class="col-lg-4 radio"> | ||
<%= label_tag do %> | ||
<%= radio_button_tag :kubernetes, '', :checked %> | ||
All | ||
<% end %> | ||
</div> | ||
<div class="col-lg-4 radio"> | ||
<%= label_tag do %> | ||
<%= radio_button_tag :kubernetes, 'true' %> | ||
Only Kubernetes | ||
<% end %> | ||
</div> | ||
|
||
<div class="col-lg-4 radio"> | ||
<%= label_tag do %> | ||
<%= radio_button_tag :kubernetes, 'false' %> | ||
Only Non-Kubernetes | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<% end %> | ||
|
||
<div class="form-group"> | ||
<div class="col-lg-10"> | ||
<label>Stage Status Filter</label> | ||
<div class="form-group"> | ||
<div class="col-lg-4 radio"> | ||
<%= label_tag do %> | ||
<%= radio_button_tag :status, '', :checked %> | ||
All | ||
<% end %> | ||
</div> | ||
<div class="col-lg-4 radio"> | ||
<%= label_tag do %> | ||
<%= radio_button_tag :status, 'successful' %> | ||
Previously successful | ||
<% end %> | ||
</div> | ||
<div class="col-lg-4 radio"> | ||
<%= label_tag do %> | ||
<%= radio_button_tag :status, 'missing' %> | ||
<abbr title="Any stages that haven't yet been deployed or have failed all their deploys">Missing</abbr> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<%= submit_tag "Start Deploys", class: "btn btn-default", data: { confirm: "Deploys will be started for all matching stages", disable_with: "Deploying..." } %> | ||
<% end %> | ||
</div> |
25 changes: 25 additions & 0 deletions
25
app/views/deploy_groups/_mass_stage_creation_form.html.erb
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,25 @@ | ||
<label class="col-lg-2 control-label">Mass Stage Creation</label> | ||
<div class="col-lg-10"> | ||
<%= link_to "Create Stages ...", | ||
new_deploy_group_mass_rollouts_path(@deploy_group), | ||
class: "btn btn-default" | ||
%> | ||
<% cloned_stage_count = @deploy_group.stages.cloned.count %> | ||
<%= link_to "Merge #{cloned_stage_count} Cloned Stages", | ||
merge_deploy_group_mass_rollouts_path(@deploy_group), | ||
class: "btn btn-default #{ 'disabled' if cloned_stage_count.zero? }", | ||
data: { | ||
method: "post", | ||
confirm: "Stages will be deleted. Before deleting, each stage will have its Deploy Group added to the stage it was copied from. Stages affected are those cloned from a template stage, have exactly this deploy group, and are on a project that uses include_new_deploy_groups.\n\n" \ | ||
"Merge #{@deploy_group.stages.cloned.count} cloned stages now?" | ||
} | ||
%> | ||
<%= link_to "Delete #{cloned_stage_count} Cloned Stages", | ||
deploy_group_mass_rollouts_path(@deploy_group), | ||
class: "btn btn-default #{ 'disabled' if cloned_stage_count.zero? }", | ||
data: { | ||
method: "delete", | ||
confirm: "Cloned stages will be deleted. No stages will be merged into their templates. You will need to create a new stage to deploy the project to this deploy group." | ||
} | ||
%> | ||
</div> |
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
Oops, something went wrong.