Update replication.directive.html

fixed table title
This commit is contained in:
yhua123 2016-06-28 19:33:23 +08:00 committed by GitHub
parent 6a7f5b418c
commit 115947a618

View File

@ -9,47 +9,54 @@
</div> </div>
<create-policy reload="vm.retrieve()" action="vm.action" modal-title="//vm.modalTitle//" policy-id="//vm.policyId//"></create-policy> <create-policy reload="vm.retrieve()" action="vm.action" modal-title="//vm.modalTitle//" policy-id="//vm.policyId//"></create-policy>
</div> </div>
<div class="pane"> <div class="pane-split" id="down-pane">
<div class="sub-pane"> <div class="sub-pane-split">
<table class="table table-pane"> <div class="table-head-container">
<thead> <table class="table table-pane table-header">
<th width="14%">// 'name' | tr //</th> <thead>
<th width="18%">// 'description' | tr //</th> <th width="14%">// 'name' | tr //</th>
<th width="14%">// 'projects' | tr //</th> <th width="18%">// 'description' | tr //</th>
<th width="12%">// 'destination' | tr //</th> <th width="14%">// 'projects' | tr //</th>
<th width="18%">// 'start_time' | tr //</th> <th width="12%">// 'destination' | tr //</th>
<th width="12%">// 'activation' | tr //</th> <th width="18%">// 'start_time' | tr //</th>
<th width="12%">// 'actions' | tr //</th> <th width="12%">// 'activation' | tr //</th>
</thead> <th width="12%">// 'actions' | tr //</th>
<tbody> </thead>
<tr ng-if="vm.replications.length == 0"> </table>
<td colspan="7" height="100%" class="empty-hint" ><h3 class="text-muted">// 'no_replications' | tr //</h3></td> </div>
</tr> <div class="table-body-container" style="height: 200px;">
<tr ng-if="vm.replications.length > 0" ng-repeat="r in vm.replications"> <table class="table table-pane">
<td><a href="repository#/replication?project_id=//r.project_id//">//r.name//</a></td> <tbody>
<td>//r.description//</td> <tr ng-if="vm.replications.length == 0">
<td>//r.project_name//</td> <td colspan="7" height="100%" class="empty-hint" ><h3 class="text-muted">// 'no_replications' | tr //</h3></td>
<td>//r.target_name//</td> </tr>
<td>//r.start_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td> <tr ng-if="vm.replications.length > 0" ng-repeat="r in vm.replications">
<td ng-switch on="//r.enabled//"> <td><a href="repository#/replication?project_id=//r.project_id//">//r.name//</a></td>
<span ng-switch-when="1">// 'enabled' | tr //</span> <td>//r.description//</td>
<span ng-switch-when="0">// 'disabled' | tr //</span> <td>//r.project_name//</td>
</td> <td>//r.target_name//</td>
<td> <td>//r.start_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
<div class="display-inline-block" ng-switch on="//r.enabled//"> <td ng-switch on="//r.enabled//">
<a href="javascript:void(0);" ng-click="vm.togglePolicy(r.id, 0)"><span ng-switch-when="1" class="glyphicon glyphicon-stop color-danger"></span></a> <span ng-switch-when="1">// 'enabled' | tr //</span>
<a href="javascript:void(0);" ng-click="vm.togglePolicy(r.id, 1)"><span ng-switch-when="0" class="glyphicon glyphicon-play color-success"></span></a> <span ng-switch-when="0">// 'disabled' | tr //</span>
</div> </td>
&nbsp; <td>
<a href="javascript:void(0);" data-toggle="modal" data-target="#createPolicyModal" ng-click="vm.editReplication(r.id)"><span class="glyphicon glyphicon-pencil"></span></a> <div class="display-inline-block" ng-switch on="//r.enabled//">
&nbsp; <a href="javascript:void(0);" ng-click="vm.togglePolicy(r.id, 0)"><span ng-switch-when="1" class="glyphicon glyphicon-stop color-danger"></span></a>
<!--a href="javascript:void(0);"><span class="glyphicon glyphicon-trash"></span></a--> <a href="javascript:void(0);" ng-click="vm.togglePolicy(r.id, 1)"><span ng-switch-when="0" class="glyphicon glyphicon-play color-success"></span></a>
</td> </div>
</tr> &nbsp;
</tbody> <a href="javascript:void(0);" data-toggle="modal" data-target="#createPolicyModal" ng-click="vm.editReplication(r.id)"><span class="glyphicon glyphicon-pencil"></span></a>
</table> &nbsp;
<!--a href="javascript:void(0);"><span class="glyphicon glyphicon-trash"></span></a-->
</td>
</tr>
</tbody>
</table>
</div>
</div> </div>
</div> </div>
<div class="col-xs-4 col-md-12 well well-sm well-custom"><div class="col-md-offset-10">//vm.replications ? vm.replications.length : 0// // 'items' | tr //</div></div> </div>
<div class="col-xs-4 col-md-12 well well-sm well-custom"><div class="col-md-offset-10">//vm.replications ? vm.replications.length : 0// // 'items' | tr //</div></div>
</div> </div>
</div> </div>