jobs.hbs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 run in content}}
  52. {{view view.containerRow runBinding="run" currentViewBinding="view.appTableRow"}}
  53. {{/each}}
  54. {{/if}}
  55. </tbody>
  56. </table>
  57. <div class="page-bar">
  58. <div id="filtered-jobs">
  59. {{view.filteredJobs}} - <a href="javascript:void(null);" {{action clearFilters target="controller"}}>{{t jobs.filtered.clear}}</a>
  60. </div>
  61. <div class="items-on-page">
  62. <label>{{t jobs.show.up.to}}: {{view view.showNumberOfJobs selectionBinding="controller.filterObject.iDisplayLength"}}</label>
  63. </div>
  64. </div>
  65. </div>