jobs.hbs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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="jobs_head">
  20. <div>{{t menu.item.jobs}}</div>
  21. <div class="jobs-type">
  22. {{t jobs.type}} :
  23. <button class="btn single-btn-group">
  24. {{t jobs.type.hive}}
  25. </button>
  26. </div>
  27. </div>
  28. <table class="table table-striped runsList">
  29. <thead>
  30. {{#view view.wrapSorting}}
  31. {{#each controller.columnsName}}
  32. {{#view view.parentView.sortingColumns contentBinding="this"}}
  33. {{name}}
  34. {{/view}}
  35. {{/each}}
  36. {{/view}}
  37. <tr>
  38. <th>{{view view.jobsIdFilterView}}</th>
  39. <th>{{view view.userFilterView}}</th>
  40. <th>{{view view.startTimeFilterView}}</th>
  41. <th>{{view view.endTimeFilterView}}</th>
  42. <th></th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {{#if view.emptyData}}
  47. <tr>
  48. <td class="no-data" {{bindAttr colspan="controller.columnsName.content.length"}}>{{t apps.filters.nothingToShow}}</td>
  49. </tr>
  50. {{else}}
  51. {{#each job in content}}
  52. <tr>
  53. <td>
  54. <a title="{{unbound job.name}}" href="#" {{action "showJobDetails" job}}>{{unbound job.name}}</a>
  55. </td>
  56. <td>
  57. {{job.user}}
  58. </td>
  59. <td>
  60. {{job.startTimeDisplay}}
  61. </td>
  62. <td>
  63. {{job.endTimeDisplay}}
  64. </td>
  65. <td>
  66. {{job.durationDisplay}}
  67. </td>
  68. </tr>
  69. {{/each}}
  70. {{/if}}
  71. </tbody>
  72. </table>
  73. <div class="page-bar">
  74. <div id="filtered-jobs">
  75. {{view.filteredJobs}} - <a href="javascript:void(null);" {{action clearFilters target="controller"}}>{{t jobs.filtered.clear}}</a>
  76. </div>
  77. <div class="items-on-page">
  78. <label>{{t jobs.show.up.to}}: {{view view.showNumberOfJobs selectionBinding="controller.filterObject.iDisplayLength"}}</label>
  79. </div>
  80. </div>
  81. </div>