step9HostTasksLogPopup.hbs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 {{bindAttr class="view.isLogWrapHidden::hidden :task-list-main-warp"}}>
  19. <div class="task-top-wrap">
  20. <div class="task-name-top task-detail-log-rolename">{{t common.tasks}}</div>
  21. <div class="start-time-top">{{t common.startTime}}</div>
  22. <div class="duration-top">{{t common.duration}}</div>
  23. <div class="select-wrap">
  24. {{t common.show}}:
  25. {{view Ember.Select
  26. contentBinding="view.categories"
  27. optionValuePath="content.value"
  28. optionLabelPath="content.label"
  29. selectionBinding="view.category"
  30. }}
  31. </div>
  32. </div>
  33. <div id="host-log">
  34. {{#each taskInfo in view.tasks}}
  35. <div {{bindAttr class="taskInfo.isVisible::hidden :log-list-wrap"}}>
  36. <div {{action toggleTaskLog taskInfo}} class="task-list-line-cursor">
  37. <div class="operation-name-icon-wrap">
  38. <i {{bindAttr class="taskInfo.status taskInfo.icon"}}></i>
  39. <a href="#">
  40. {{taskInfo.role}} {{taskInfo.command}}
  41. </a>
  42. </div>
  43. <div class="time-summary start-time-text">{{taskInfo.startTime}}</div>
  44. <div class="time-summary duration-text">{{taskInfo.duration}}</div>
  45. <div class="show-details"><i class="icon-caret-right"></i></div>
  46. </div>
  47. </div>
  48. {{/each}}
  49. {{#if view.isEmptyList}}
  50. <div class="log-list-wrap">{{t installer.step9.hostLog.popup.noTasksToShow}}</div>
  51. {{/if}}
  52. </div>
  53. </div>
  54. <div {{bindAttr class="view.isLogWrapHidden:hidden :task-detail-info"}}>
  55. <div class="task-top-wrap">
  56. <a class="task-detail-back" href="javascript:void(null)" {{action backToTaskList}} ><i class="icon-arrow-left"></i>&nbsp;{{t common.tasks}}</a>
  57. <div>
  58. <i {{bindAttr class="view.openedTask.status :task-detail-status-ico view.openedTask.icon"}} class="task-detail-status-ico"></i>
  59. <span class="task-detail-log-rolename" >{{view.openedTask.role}} {{view.openedTask.command}}</span>
  60. </div>
  61. <div class="task-detail-ico-wrap">
  62. <a title="Click to Copy" {{action "textTrigger" taskInfo target="view"}} class="task-detail-copy"><i class="icon-copy"></i> {{t common.copy}}</a>
  63. <a title="Open in New Window" {{action openTaskLogInDialog}} class="task-detail-open-dialog"><i class="icon-external-link"></i> {{t common.open}}</a>
  64. </div>
  65. </div>
  66. <div class="task-detail-log-info">
  67. <div class="content-area" >
  68. <div class="task-detail-log-clipboard-wrap" ></div>
  69. <div class="task-detail-log-maintext">
  70. <h5>stderr: &nbsp; <span class="muted">{{view.openedTask.errorLog}} </span></h5>
  71. <pre class="stderr">{{view.openedTask.stderr}}</pre>
  72. <h5>stdout: &nbsp; <span class="muted"> {{view.openedTask.outputLog}} </span> </h5>
  73. <pre class="stdout">{{view.openedTask.stdout}}</pre>
  74. </div>
  75. </div>
  76. </div>
  77. </div>