repositories.hbs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 class="admin-cluster">
  19. <div class="header">
  20. <strong>{{t admin.cluster.stackVersion}}: {{App.currentStackVersion}}
  21. {{#if App.supports.stackUpgrade}}
  22. (<a href="#" {{bindAttr class="view.isUpgradeAvailable::inactive"}}{{action "upgradeStack"}}>
  23. {{#if view.isUpgradeAvailable}}
  24. {{t admin.cluster.upgradeAvailable}}: {{upgradeVersion}}
  25. {{else}}
  26. {{t admin.cluster.upgradeUnavailable}}
  27. {{/if}}
  28. </a>)
  29. {{/if}}
  30. </strong>
  31. </div>
  32. <table class="table table-bordered table-striped">
  33. <thead>
  34. <tr>
  35. <th>{{t common.service}}</th>
  36. <th>{{t common.version}}</th>
  37. <th>{{t common.description}}</th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. {{#each service in services}}
  42. {{#unless service.isHidden}}
  43. <tr>
  44. <td>{{service.displayName}}</td>
  45. <td>{{service.version}}</td>
  46. <td>{{{service.description}}}</td>
  47. </tr>
  48. {{/unless}}
  49. {{/each}}
  50. </tbody>
  51. </table>
  52. <div class="header">
  53. <strong>{{t admin.cluster.repositories.repositories}}</strong>
  54. </div>
  55. <ul class="nav nav-tabs">
  56. <li class="active">
  57. <a href="javascript:void(null);">{{view.allRepositoriesGroups.stackVersion}}</a>
  58. </li>
  59. </ul>
  60. <div class="repositories-table">
  61. <div class="thead">
  62. <div class="th os-th">{{t common.os}}</div>
  63. <div class="th name-th">{{t common.name}}</div>
  64. <div class="th url-th">{{t installer.step1.advancedRepo.localRepo.column.baseUrl}}</div>
  65. </div>
  66. <div class="tbody">
  67. {{#each repoGroup in view.allRepositoriesGroups}}
  68. <div class="trow">
  69. <div class="os-td">
  70. <label>
  71. <span class="os">{{repoGroup.name}}</span>
  72. </label>
  73. </div>
  74. <div style="width:89%">
  75. {{#each repository in repoGroup.repositories}}
  76. <div class="sub-trow">
  77. <div class="name-td">{{repository.repoId}}</div>
  78. <!--edit mode for current url-->
  79. {{#if repository.onEdit}}
  80. <div {{bindAttr class=":url-td repository.empty-error:textfield-error repository.invalid-error:textfield-error"}}>
  81. {{view Ember.TextField valueBinding="repository.baseUrl"}}
  82. </div>
  83. <div class="clear-td">
  84. {{#if repository.clearAll}}
  85. <a {{action "clearGroupLocalRepository" repository target="view" }}>
  86. <i class="icon-remove-sign"></i>
  87. </a>
  88. {{/if}}
  89. </div>
  90. <div class="edit-buttons-td">
  91. <a class="btn" {{action doCancel repository target="view"}}>{{t common.cancel}}</a>
  92. </div>
  93. <div class="edit-buttons-td">
  94. {{#if repository.empty-error}}
  95. <a class="btn btn-primary" disabled="disabled">{{t common.save}}</a>
  96. {{else}}
  97. <a class="btn btn-primary" {{action saveRepoUrls repository target="view"}}>{{t common.save}}</a>
  98. {{/if}}
  99. </div>
  100. <!--non-edit mode for current url-->
  101. {{else}}
  102. <div class="url-text-td">
  103. {{repository.baseUrl}}
  104. </div>
  105. <div class="edit-td">
  106. <a {{action "onEditClick" repository target="view" }}>
  107. <i class="icon-edit"></i> {{t common.edit}}
  108. </a>
  109. </div>
  110. {{/if}}
  111. </div>
  112. {{/each}}
  113. </div>
  114. </div>
  115. {{/each}}
  116. </div>
  117. </div>
  118. </div>