Skip to content

Commit

Permalink
making the implementation match the comp (more closely)
Browse files Browse the repository at this point in the history
Signed-off-by: Gary Paige <[email protected]>
  • Loading branch information
dharmamike authored and argvader committed Dec 16, 2014
1 parent 9fc7c00 commit 0c284c4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@

$('body').confirmAndDelete();

$('.deployment > .actions').confirmAndRedeploy();
$('body').confirmAndRedeploy();

$('body').selectDeploymentTarget();

Expand Down
10 changes: 9 additions & 1 deletion app/assets/stylesheets/panamax/deployments.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,15 @@
.actions {
position: relative;
float: right;
width: 175px;
width: 255px;

.confirm-delete {
top: 0;
}

span {
padding: 0 0 0 80px;
}

.redeploy {
font-size: 14px;
Expand Down
4 changes: 2 additions & 2 deletions app/views/deployments/_deployment.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
title: 'delete',
method: 'delete',
data: { delete_confirm: 'Delete this Deployment?', delete_remove_at: '.deployment' }
= link_to 'Redeploy',
= link_to 'Redeploy Application',
presenter.redeploy_path,
method: :post,
class: 'redeploy',
title: 'redeploy',
data: { action_confirm: 'Redeploy this Deployment?', action_button_text: 'Yes, Redeploy!' }
data: { action_confirm: 'Are you sure? All services will be discarded.', action_button_text: 'Yes, Redeploy!' }
%dl
%dt Services:
%dd= presenter.service_count
Expand Down

0 comments on commit 0c284c4

Please sign in to comment.