mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-08 19:50:05 +01:00
110 lines
6.2 KiB
HTML
110 lines
6.2 KiB
HTML
<div class="tab-pane">
|
|
<div class="col-xs-12 col-md-12 each-tab-pane">
|
|
<div class="form-inline">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" placeholder="" ng-model="vm.replicationPolicyName" size="30">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-primary" type="button" ng-click="vm.searchReplicationPolicy()"><span class="glyphicon glyphicon-search"></span></button>
|
|
</span>
|
|
</div>
|
|
<button ng-if="!vm.isOpen" class="btn btn-success" type="button" ng-click="vm.addReplication()" data-toggle="modal" data-target="#createPolicyModal"><span class="glyphicon glyphicon-plus"></span>// 'add_new_policy' | tr //</button>
|
|
<create-policy reload="vm.retrievePolicy()" action="vm.action" modal-title="//vm.modalTitle//" policy-id="//vm.policyId//"></create-policy>
|
|
</div>
|
|
<div class="pane-split" id="upon-pane">
|
|
<div class="sub-pane-split">
|
|
<div class="table-head-container">
|
|
<table class="table table-pane table-header">
|
|
<thead>
|
|
<th width="10%">// 'name' | tr //</th>
|
|
<th width="18%">// 'description' | tr //</th>
|
|
<th width="18%">// 'destination' | tr //</th>
|
|
<th width="18%">// 'last_start_time' | tr //</th>
|
|
<th width="14%">// 'activation' | tr// </th>
|
|
<th width="15%">// 'actions' | tr //</th>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="table-body-container" style="height: 250px;">
|
|
<table class="table table-pane">
|
|
<tbody>
|
|
<tr ng-if="vm.replicationPolicies.length == 0">
|
|
<td colspan="7" height="100%" class="empty-hint" ><h3 class="text-muted">// 'no_replication_policies_add_new' | tr //</h3></td>
|
|
</tr>
|
|
<tr policy_id="//r.id//" ng-if="vm.replicationPolicies.length > 0" ng-repeat="r in vm.replicationPolicies" value="//vm.last = $last//">
|
|
<td width="10%">//r.name//</td>
|
|
<td width="18%">//r.description//</td>
|
|
<td width="18%">//r.target_name//</td>
|
|
<td width="18%">//r.start_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
|
|
<td width="14%" ng-switch on="//r.enabled//">
|
|
<span ng-switch-when="1">// 'enabled' | tr //</span>
|
|
<span ng-switch-when="0">// 'disabled' | tr //</span>
|
|
</td>
|
|
<td width="15%">
|
|
<div class="display-inline-block" ng-switch on="//r.enabled//">
|
|
<a href="javascript:void(0);" ng-click="vm.togglePolicy(r.id, 0)" title="// 'disabled' | tr //"><span ng-switch-when="1" class="glyphicon glyphicon-stop color-danger"></span></a>
|
|
<a href="javascript:void(0);" ng-click="vm.togglePolicy(r.id, 1)" title="// 'enabled' | tr //"><span ng-switch-when="0" class="glyphicon glyphicon-play color-success"></span></a>
|
|
</div>
|
|
|
|
<a href="javascript:void(0);" data-toggle="modal" data-target="#createPolicyModal" ng-click="vm.editReplication(r.id)" title="// 'edit_policy' | tr //"><span class="glyphicon glyphicon-pencil"></span></a>
|
|
|
|
<!--a href="javascript:void(0);"><span class="glyphicon glyphicon-trash"></span></a -->
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-4 col-md-12 well well-sm well-custom well-split"><div class="col-md-offset-10">//vm.replicationPolicies ? vm.replicationPolicies.length : 0// // 'items' | tr //</div></div>
|
|
<!--p class="split-handle"><span class="glyphicon glyphicon-align-justify"></span></p-->
|
|
<h4 class="h4-custom-down">// 'replication_jobs' | tr //</h4>
|
|
<hr class="hr-line"/>
|
|
<div class="form-inline">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" placeholder="" ng-model="vm.replicationJobName" size="30">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-primary" type="button" ng-click="vm.searchReplicationJob()" ng-disabled="vm.refreshPending"><span class="glyphicon glyphicon-search"></span></button>
|
|
</span>
|
|
</div>
|
|
<div class="input-group">
|
|
<button type="button" class="btn btn-success" ng-click="vm.searchReplicationJob()"><span class="glyphicon glyphicon-refresh"></span></button>
|
|
</div>
|
|
</div>
|
|
<div class="pane-split" id="down-pane">
|
|
<div class="sub-pane-split">
|
|
<div class="table-head-container">
|
|
<table class="table table-pane table-header">
|
|
<thead>
|
|
<th width="15%">// 'name' | tr //</th>
|
|
<th width="12%">// 'operation' | tr //</th>
|
|
<th width="18%">// 'creation_time' | tr //</th>
|
|
<th width="18%">// 'start_time' | tr //</th>
|
|
<th width="18%">// 'end_time' | tr //</th>
|
|
<th width="9%">// 'status' | tr //</th>
|
|
<th width="10%">// 'logs' | tr //</th>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="table-body-container" style="height: 370px;">
|
|
<table class="table table-pane">
|
|
<tbody>
|
|
<tr ng-if="vm.replicationJobs.length == 0">
|
|
<td colspan="4" height="100%" class="empty-hint" ><h3 class="text-muted">// 'no_replication_jobs' | tr //</h3></td>
|
|
</tr>
|
|
<tr ng-if="vm.replicationJobs.length > 0" ng-repeat="r in vm.replicationJobs">
|
|
<td width="15%">//r.repository//</td>
|
|
<td width="12%">//r.operation//</td>
|
|
<td width="18%">//r.creation_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
|
|
<td width="18%">//r.creation_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
|
|
<td width="18%">//r.update_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
|
|
<td width="9%">//r.status//</td>
|
|
<td width="10%" align="left"><a href="javascript:void(0);" ng-click="vm.downloadLog(r.id)" title="// 'download_log' | tr //"><span style="margin-left: 10px;" class="glyphicon glyphicon-file"></span></a></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |