Skip to content

Commit

Permalink
added label
Browse files Browse the repository at this point in the history
  • Loading branch information
Cjpilbdev committed Jun 3, 2024
1 parent a51fafc commit c97b5df
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions deploy-board/deploy_board/templates/host_side_panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ <h4 class="panel-title pull-left">Hosts</h4>
</div>

{% if pinterest %}
<div class="row">
<p>
{% if not instance_protected %}
Host is not protected.
{% else %}
Host is protected.
{% endif %}
</p>
</div>
{% if show_terminate %}
<div class="row">
<button id="terminateBtn" class="deployToolTip btn btn-default btn-block" data-target="#terminateHost"
Expand Down Expand Up @@ -130,7 +139,6 @@ <h4 class="modal-title">Host Force Termination Confirm</h4>
aria-labelledby="newEntryModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<p>Host is not protected.</p>
<form id="protectHostForm" class="form-horizontal" method="post" role="form" action="/groups/{{ asg_group }}/instance_action/?hostId={{ host_id }}&action=PROTECT">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
Expand Down Expand Up @@ -161,7 +169,6 @@ <h4 class="modal-title">Protection Confirm</h4>
aria-labelledby="newEntryModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<p>Host is protected.</p>
<form id="protectHostForm" class="form-horizontal" method="post" role="form" action="/groups/{{ asg_group }}/instance_action/?hostId={{ host_id }}&action=UNPROTECT">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
Expand Down

0 comments on commit c97b5df

Please sign in to comment.