jobs.hbs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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="jobs">
  19. <div class="jobs_head">
  20. <div>{{t menu.item.jobs}}</div>
  21. <div class="jobs-type">
  22. {{t jobs.type}} : <span class="label label-info">{{t jobs.type.hive}}</span>
  23. </div>
  24. </div>
  25. <table id="jobs-table" class="table table-bordered table-striped">
  26. <thead>
  27. {{#view view.sortView classNames="label-row" contentBinding="view.content"}}
  28. <th></th>
  29. {{view view.parentView.idSort}}
  30. {{view view.parentView.userSort}}
  31. {{view view.parentView.startTimeSort}}
  32. {{view view.parentView.endTimeSort}}
  33. {{view view.parentView.durationSort}}
  34. {{/view}}
  35. <tr id="filter-row" class="first">
  36. <th></th>
  37. <th>{{view view.jobsIdFilterView}}</th>
  38. <th>{{view view.userFilterView}}</th>
  39. <th class="start-time">{{view view.startTimeFilterView}}</th>
  40. <th></th>
  41. <th></th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. {{#if view.noDataToShow}}
  46. <tr>
  47. {{#if controller.loaded}}
  48. <td class="no-data" {{bindAttr colspan="controller.columnsName.content.length"}}>{{t jobs.nothingToShow}}</td>
  49. {{else}}
  50. <td class="no-data" {{bindAttr colspan="controller.columnsName.content.length"}}>{{t jobs.loadingTasks}}</td>
  51. {{/if}}
  52. </tr>
  53. {{else}}
  54. {{#each job in controller.sortedContent}}
  55. <tr>
  56. <td>
  57. {{#if job.failed}}
  58. <i class="icon-remove-sign job-link" {{bindAttr title="view.jobFailMessage"}}></i>
  59. {{/if}}
  60. </td>
  61. <td>
  62. <div class="id">
  63. {{view view.jobNameView jobBinding="job"}}
  64. </div>
  65. </td>
  66. <td>
  67. {{job.user}}
  68. </td>
  69. <td>
  70. {{job.startTimeDisplay}}
  71. </td>
  72. <td>
  73. {{job.endTimeDisplay}}
  74. </td>
  75. <td>
  76. {{job.durationDisplay}}
  77. </td>
  78. </tr>
  79. {{/each}}
  80. {{/if}}
  81. </tbody>
  82. </table>
  83. <div class="page-bar">
  84. <div id="filtered-jobs">
  85. {{view.filteredJobs}} - <a href="javascript:void(null);" {{action clearFilters target="view"}}>{{t jobs.filtered.clear}}</a>
  86. </div>
  87. <div class="items-on-page">
  88. <label>{{t jobs.show.up.to}}: {{view view.rowsPerPageSelectView selectionBinding="view.displayLength"}}</label>
  89. </div>
  90. </div>
  91. </div>