apps.hbs 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. <div class="breadcrumb">
  20. <li><a href='#' {{action "routeHome" target="controller"}}><i class="icon-home"></i></a><span class="divider">/</span></li>
  21. <li class="active">Apps</li>
  22. </div>
  23. <table class="table table-bordered table-stripe avg-table" >
  24. <tbody>
  25. <tr >
  26. <td rowspan="3" class="avg-star"><a href="#" {{action "avgStarClick" target="view"}} class="icon-star a"></a></td>
  27. <td></td>
  28. <td>Jobs</td>
  29. <td>Input</td>
  30. <td>Output</td>
  31. <td>Duration</td>
  32. <td>Oldest</td>
  33. <td>Most Recent</td>
  34. </tr>
  35. <tr class="avg-info">
  36. <td>Avg</td>
  37. <td>{{view.avgData.jobs.avg}}</td>
  38. <td>{{view.avgData.input.avg}}</td>
  39. <td>{{view.avgData.output.avg}}</td>
  40. <td>{{view.avgData.duration.avg}}</td>
  41. <td>{{view.avgData.times.oldest}}</td>
  42. <td>{{view.avgData.times.youngest}}</td>
  43. </tr>
  44. <tr class="compare-info">
  45. <td>Min / Max</td>
  46. <td>{{view.avgData.jobs.min}} / {{view.avgData.jobs.max}}</td>
  47. <td>{{view.avgData.input.min}} / {{view.avgData.input.max}}</td>
  48. <td>{{view.avgData.output.min}} / {{view.avgData.output.max}}</td>
  49. <td>{{view.avgData.duration.min}} / {{view.avgData.duration.max}}</td>
  50. <td></td>
  51. <td></td>
  52. </tr>
  53. </tbody>
  54. </table>
  55. <div id="filter_info" class="row">
  56. <div class="span3">Show: <a href="javascript:void(0)">Filtered ({{view.filtered}})</a>&nbsp;&#124;&nbsp;<a href="javascript:void(0)">Starred ({{view.staredData.count}})</a></div>
  57. <div class="span2"><a href="#" {{action "clearFilters" target="view"}}>Clear filters</a>&nbsp;&#124;&nbsp;<a href="#" {{action "clearStars" target="controller"}}>Clear stars</a></div>
  58. </div>
  59. <div>
  60. </div>
  61. <table class="table table-striped" id="dataTable">
  62. <thead>
  63. <tr>
  64. <th>App ID <i class="icon-question-sign"></i></th>
  65. <th>Name <i class="icon-question-sign"></i></th>
  66. <th>Type <i class="icon-question-sign"></i></th>
  67. <th>User <i class="icon-question-sign"></i></th>
  68. <th>Jobs <i class="icon-question-sign"></i></th>
  69. <th>Input <i class="icon-question-sign"></i></th>
  70. <th>Output <i class="icon-question-sign"></i></th>
  71. <th>Duration <i class="icon-question-sign"></i></th>
  72. <th>Run Date</th>
  73. </tr>
  74. <tr>
  75. <th>{{view view.appidFilterView}}</th>
  76. <th>{{view view.nameFilterView}}</th>
  77. <th>{{view view.typeSelectView}}</th>
  78. <th>{{view view.userFilterView}}<input id="user_filter" type="hidden"></th>
  79. <th>{{view view.jobsFilterView}}</th>
  80. <th>{{view view.inputFilterView}}</th>
  81. <th>{{view view.outputFilterView}}</th>
  82. <th>{{view view.durationFilterView}}</th>
  83. <th>{{view view.rundateSelectView}}</th>
  84. </tr>
  85. </thead>
  86. <tbody>
  87. {{#each run in view.content}}
  88. {{view view.containerRow runBinding="run" currentViewBinding="view.appTableRow"}}
  89. {{/each}}
  90. </tbody>
  91. </table>
  92. </div>