apps.hbs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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="apps">
  19. <table class="table table-bordered avg-table">
  20. <tbody>
  21. <tr>
  22. <td></td>
  23. <td>Jobs</td>
  24. <td>Input</td>
  25. <td>Output</td>
  26. <td>Duration</td>
  27. <td>Oldest</td>
  28. <td>Most Recent</td>
  29. </tr>
  30. <tr class="avg-info">
  31. <td>Avg</td>
  32. <td>{{summary.jobs.avg}}</td>
  33. <td>{{summary.input.avg}}</td>
  34. <td>{{summary.output.avg}}</td>
  35. <td>{{summary.duration.avg}}</td>
  36. <td>{{summary.times.oldest}}</td>
  37. <td>{{summary.times.youngest}}</td>
  38. </tr>
  39. <tr class="compare-info">
  40. <td>Min / Max</td>
  41. <td>{{summary.jobs.min}} / {{summary.jobs.max}}</td>
  42. <td>{{summary.input.min}} / {{summary.input.max}}</td>
  43. <td>{{summary.output.min}} / {{summary.output.max}}</td>
  44. <td>{{summary.duration.min}} / {{summary.duration.max}}</td>
  45. <td></td>
  46. <td></td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. <div class="filter_info">
  51. <div class="span4" id="filter_buttons">Show:
  52. <a class="all selected" {{action "clickViewType" target="view"}} data-view-type="all">All
  53. ({{controller.paginationObject.iTotalRecords}})</a> &#124;
  54. <a class="filtered" {{action "clickViewType" target="view"}} data-view-type="filtered">Filtered
  55. ({{controller.filterObject.filteredDisplayRecords}})</a>
  56. </div>
  57. <div class="span2 clear_filter">
  58. <a {{action "clearFilters" target="view"}}>Clear filters</a>
  59. </div>
  60. <div class="search-bar">
  61. {{view view.appSearchThrough valueBinding="controller.filterObject.sSearch"}}
  62. </div>
  63. </div>
  64. <table class="table table-striped runsList">
  65. <thead>
  66. {{#view view.wrapSorting}}
  67. {{#each controller.columnsName}}
  68. {{#view view.parentView.sortingColumns contentBinding="this"}}
  69. {{name}}
  70. {{/view}}
  71. {{/each}}
  72. {{/view}}
  73. <tr>
  74. <th>{{view view.appIdFilterView}}</th>
  75. <th>{{view view.nameFilterView}}</th>
  76. <th>{{view view.typeFilterView}}</th>
  77. <th>{{view view.userFilterView}}</th>
  78. <th>{{view view.jobsFilterView}}</th>
  79. <th>{{view view.inputFilterView}}</th>
  80. <th>{{view view.outputFilterView}}</th>
  81. <th>{{view view.durationFilterView}}</th>
  82. <th>{{view view.runDateFilterView}}</th>
  83. </tr>
  84. </thead>
  85. <tbody>
  86. {{#each run in content}}
  87. {{view view.containerRow runBinding="run" currentViewBinding="view.appTableRow"}}
  88. {{/each}}
  89. </tbody>
  90. </table>
  91. <div class="page-bar">
  92. <div class="items-on-page">
  93. <label>Show: {{view view.runPerPageSelectView viewName="runPerPageSelectView" selectionBinding="controller.filterObject.iDisplayLength"}}</label>
  94. </div>
  95. <div class="info">{{controller.paginationObject.startIndex}} - {{controller.paginationObject.endIndex}} of {{controller.paginationObject.iTotalDisplayRecords}}</div>
  96. <div class="paging_two_button">
  97. {{view view.paginationLeft}}
  98. {{view view.paginationRight}}
  99. </div>
  100. </div>
  101. </div>