You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
3.5 KiB
89 lines
3.5 KiB
<div ng-controller="Kubernetes.ReplicationControllers">
|
|
<script type="text/ng-template" id="currentReplicasTemplate.html">
|
|
<div class="ngCellText" title="Number of running pods for this controller">
|
|
<a ng-show="row.entity.podsLink" href="{{row.entity.podsLink}}">
|
|
<span class="badge {{row.entity.status.replicas > 0 ? 'badge-success' : 'badge-warning'}}">{{row.entity.status.replicas}}</span>
|
|
</a>
|
|
<span ng-hide="row.entity.podsLink" class="badge">{{row.entity.status.replicas}}</span>
|
|
</div>
|
|
</script>
|
|
<script type="text/ng-template" id="desiredReplicas.html">
|
|
<div class="ngCellText">
|
|
<a href="" class="badge badge-info"
|
|
ng-click="$parent.$parent.resizeDialog.open(row.entity)"
|
|
title="Edit the number of replicas of this controller">{{row.entity.spec.replicas || 0}}</a>
|
|
</div>
|
|
</script>
|
|
|
|
<div class="row">
|
|
<div hawtio-breadcrumbs></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div hawtio-tabs></div>
|
|
</div>
|
|
|
|
<div class="row filter-header">
|
|
<div class="col-md-12" >
|
|
<span ng-show="!id">
|
|
<hawtio-filter ng-model="tableConfig.filterOptions.filterText"
|
|
css-class="input-xxlarge"
|
|
placeholder="通过数据标签筛选相应的oracle服务..."
|
|
save-as="kubernetes-replication-controllers-text-filter"></hawtio-filter>
|
|
</span>
|
|
<button ng-show="model.fetched"
|
|
class="btn btn-danger pull-right"
|
|
ng-disabled="!id && tableConfig.selectedItems.length == 0"
|
|
ng-click="deletePrompt(id || tableConfig.selectedItems)">
|
|
<i class="fa fa-remove"></i> 删除
|
|
</button>
|
|
<span class="pull-right"> </span>
|
|
|
|
<button ng-show="model.fetched"
|
|
class="btn btn-danger pull-right"
|
|
ng-disabled="!id && tableConfig.selectedItems.length == 0"
|
|
ng-click="stopPrompt(id || tableConfig.selectedItems)">
|
|
<i class="fa fa-remove"></i> 停止
|
|
</button>
|
|
<span class="pull-right"> </span>
|
|
|
|
<button ng-show="model.fetched"
|
|
class="btn btn-primary pull-right"
|
|
ng-disabled="!id && tableConfig.selectedItems.length == 0"
|
|
ng-click="reStartPrompt(id || tableConfig.selectedItems)">
|
|
<i class="fa fa-plus"></i> 启动
|
|
</button>
|
|
<span class="pull-right"> </span>
|
|
|
|
<button ng-show="id"
|
|
class="btn btn-primary pull-right"
|
|
ng-click="id = undefined"><i class="fa fa-list"></i></button>
|
|
<span ng-show="id" class="pull-right"> </span>
|
|
<a class="btn btn-default pull-right"
|
|
title="Create a new replication controller"
|
|
ng-click="createRCs()"><i class="fa fa-plus"></i> 创建</a>
|
|
<span class="pull-right"> </span>
|
|
<span ng-include="'runButton.html'"></span>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div ng-hide="model.fetched">
|
|
<div class="align-center">
|
|
<i class="fa fa-spinner fa-spin"></i>
|
|
</div>
|
|
</div>
|
|
<div ng-show="model.fetched">
|
|
<div ng-hide="model.replicationControllers.length" class="align-center">
|
|
<p class="alert alert-info">当前没有正在运行的oracle服务.</p>
|
|
</div>
|
|
<div ng-show="model.replicationControllers.length">
|
|
<table class="table table-bordered table-striped"
|
|
hawtio-simple-table="tableConfig"></table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<ng-include src="'resizeDialog.html'"/>
|
|
</div>
|