123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- {{!
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- }}
- <div class="dataset-details">
- <div class="top-left">
- <h4>{{view.dataset.name}}</h4>
- </div>
- <div class="bottom-left">
- <table>
- <tr>
- <td>{{t mirroring.dataset.source}}:</td>
- <td>{{view.dataset.sourceClusterName}}</td>
- <td>{{view.dataset.sourceDir}}</td>
- </tr>
- <tr>
- <td>{{t mirroring.dataset.target}}:</td>
- <td>{{view.dataset.targetClusterName}}</td>
- <td>{{view.dataset.targetDir}}</td>
- </tr>
- </table>
- </div>
- {{#if App.isAdmin}}
- <div class="top-right">
- <div class="btn-group pull-right">
- <button class="btn">{{t common.actions}}</button>
- <button class="btn dropdown-toggle" data-toggle="dropdown">
- <span class="caret"></span>
- </button>
- <ul class="dropdown-menu pull-right">
- {{#if view.dataset.isRunning}}
- <li>
- <a href="javascript:void(null);">
- {{t mirroring.dataset.suspendInstance}}
- </a>
- </li>
- <li>
- <a href="javascript:void(null);">
- {{t mirroring.dataset.killInstance}}
- </a>
- </li>
- {{else}}
- {{#if view.dataset.isSuspended}}
- <li>
- <a href="javascript:void(null);">
- {{t mirroring.dataset.schedule}}
- </a>
- </li>
- {{else}}
- <li>
- <a href="javascript:void(null);">
- {{t mirroring.dataset.suspend}}
- </a>
- </li>
- {{/if}}
- <li>
- <a {{action editDataset}} href="javascript:void(null);">
- {{t common.edit}}
- </a>
- </li>
- <li>
- <a href="javascript:void(null);">
- {{t common.delete}}
- </a>
- </li>
- {{/if}}
- </ul>
- </div>
- <span {{bindAttr class=":label view.dataset.isRunning:label-info view.dataset.isSuspended:label-warning view.dataset.isScheduled:label-success :pull-right :dataset-status"}}>
- {{view.dataset.statusFormatted}}</span>
- </div>
- {{/if}}
- <div class="bottom-right">{{t common.download}}: <a href="javascript:void(null);">{{view.dataset.name}}.xml</a></div>
- </div>
- <div>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- {{#view view.sortView contentBinding="view.filteredContent"}}
- <th class="first"></th>
- {{view view.parentView.idSort}}
- {{view view.parentView.startSort}}
- {{view view.parentView.endSort}}
- {{/view}}
- </tr>
- <tr>
- <th class="first"></th>
- <th>{{view view.idFilterView}}</th>
- <th>{{view view.startFilterView}}</th>
- <th>{{view view.endFilterView}}</th>
- </tr>
- </thead>
- <tbody>
- {{#if controller.isLoaded}}
- {{#if view.pageContent}}
- {{#each job in view.pageContent}}
- {{#view view.JobView contentBinding="job"}}
- <td class="first">
- <span {{ bindAttr class="job.healthClass"}}></span>
- </td>
- <td>{{unbound job.id}}</td>
- <td>{{unbound job.startFormatted}}</td>
- <td>{{unbound job.endFormatted}}</td>
- {{/view}}
- {{/each}}
- {{else}}
- <tr>
- <td class="first"></td>
- <td colspan="3">
- {{t mirroring.table.noJobs}}
- </td>
- </tr>
- {{/if}}
- {{else}}
- <tr>
- <td colspan="4">
- <div class="spinner"></div>
- </td>
- </tr>
- {{/if}}
- </tbody>
- </table>
- {{#if controller.isLoaded}}
- <div class="page-bar">
- <div class="items-on-page">
- <label>{{t common.show}}
- : {{view view.rowsPerPageSelectView selectionBinding="view.displayLength"}}</label>
- </div>
- <div class="info">{{view.paginationInfo}}</div>
- <div class="paging_two_button">
- {{view view.paginationLeft}}
- {{view view.paginationRight}}
- </div>
- </div>
- {{/if}}
- </div>
|