progress.hbs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {{!
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. }}
  18. <div id="ha-progress-page">
  19. <h2>{{t admin.highAvailability.wizard.progressPage.header}}</h2>
  20. <div {{bindAttr class="view.noticeClass"}}>{{view.notice}}</div>
  21. {{#each task in controller.tasks}}
  22. {{#view view.taskView contentBinding="task"}}
  23. <div class="item">
  24. <div {{bindAttr class=":pull-left controller.isRollback::span4 controller.isRollback:span3"}}>
  25. <i {{bindAttr class="view.icon view.iconColor"}}></i>
  26. <a {{bindAttr class="view.linkClass"}} {{action "hostsLogPopup" task target="view"}} >{{task.title}}</a>
  27. </div>
  28. <div {{bindAttr class="view.showProgressBar::hide :row :span5 :pull-left" }}>
  29. <div {{bindAttr class=":progress-bar controller.isRollback::span8 controller.isRollback:span3"}}>
  30. <div class="progress-striped active progress-info progress">
  31. <div class="bar" {{bindAttr style="view.barWidth"}}></div>
  32. </div>
  33. </div>
  34. <div class="span1">{{task.progress}}&#37;</div>
  35. </div>
  36. <div>
  37. {{#if task.showRetry}}
  38. <a {{action retryTask target="controller"}} class="btn btn-primary retry">
  39. <i class="icon-repeat icon-white"></i>
  40. {{t common.retry}}
  41. </a>
  42. {{/if}}
  43. {{#if task.showRollback}}
  44. <a {{action rollback target="controller"}} class="btn btn-primary retry">
  45. <i class="icon-repeat icon-white"></i>
  46. {{t common.rollBack}}
  47. </a>
  48. {{/if}}
  49. </div>
  50. </div>
  51. {{/view}}
  52. {{/each}}
  53. <div class="btn-area">
  54. <a {{bindAttr class=":btn controller.isSubmitDisabled:disabled :btn-success :pull-right"}} {{action done target="controller"}}>{{view.submitButtonText}}</a>
  55. </div>
  56. </div>