timeline-view.hbs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 class="col-md-12 container-fluid">
  19. <div class="panel panel-default">
  20. <div class="panel-heading">
  21. {{#if attemptModel}}
  22. Application Attempts
  23. {{else}}
  24. Containers
  25. {{/if}}
  26. </div>
  27. {{#if isDataEmpty}}
  28. <ul class="nav nav-tabs" role="tablist">
  29. <li class="active">
  30. <a href="#graphViewTab" role="tab" data-toggle="tab">Graph View</a>
  31. </li>
  32. <li class="">
  33. <a href="#gridViewTab" role="tab" data-toggle="tab">Grid View</a>
  34. </li>
  35. </ul>
  36. <div class="panel-body">
  37. <div class="tab-content">
  38. <div role="tabpanel" class="tab-pane active" id="graphViewTab">
  39. <br/><br/>
  40. <div class="col-md-8 container-fluid" id={{parent-id}}></div>
  41. <!-- diag info -->
  42. <div class="col-md-4 container-fluid">
  43. <div class="panel panel-default add-ellipsis">
  44. <div class="panel-heading">
  45. {{#if selected.link}}
  46. {{#link-to selected.linkname selected.id}}{{selected.id}}{{/link-to}}
  47. {{else}}
  48. {{selected.id}}
  49. {{/if}}
  50. </div>
  51. {{#if attemptModel}}
  52. {{app-attempt-table attempt=selected}}
  53. {{else}}
  54. {{container-table container=selected}}
  55. {{/if}}
  56. </div>
  57. </div>
  58. </div>
  59. <div role="tabpanel" class="tab-pane" id="gridViewTab">
  60. {{em-table columns=gridColumns rows=gridRows}}
  61. </div>
  62. </div>
  63. </div>
  64. {{else}}
  65. <div class="panel-body">
  66. <h4 class="text-center">No data available!</h4>
  67. </div>
  68. {{/if}}
  69. </div>
  70. </div>
  71. {{outlet}}