reconfigure.hbs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. <table id="security-stages" class="table no-borders">
  19. <tbody>
  20. {{#each stage in controller.stages}}
  21. {{#view App.StageStatusView}}
  22. <td>
  23. {{#if stage.isPolling}}
  24. <a href="javascript:void(0)" {{action "showHostPopup" stage.label target="view"}}>
  25. {{/if}}
  26. <p {{bindAttr class="stage.hasStarted::faintText"}}>{{stage.label}}</p>
  27. {{#if stage.isPolling}}
  28. </a>
  29. {{/if}}
  30. </td>
  31. <td>
  32. {{#if stage.isCompleted}}
  33. {{#if stage.isSuccess}}
  34. {{view App.StageSuccessView}}
  35. {{else}}
  36. {{view App.StageFailureView}}
  37. {{/if}}
  38. {{else}}
  39. {{#if stage.isStarted}}
  40. {{#if stage.isPolling}}
  41. <div class="progress-bar pull-left">
  42. {{view App.StageInProgressView stageBinding=stage}}
  43. </div>
  44. <div class="progress-percentage pull-left">{{stage.progress}}%</div>
  45. {{/if}}
  46. {{/if}}
  47. {{/if}}
  48. </td>
  49. {{/view}}
  50. {{/each}}
  51. </tbody>
  52. </table>