background_operations_popup.hbs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. {{#each operation in allOperations}}
  19. {{#view App.MainBackgroundOperation contentBinding="operation"}}
  20. <div>
  21. <a {{action showOperationLog target="view"}} href="#">
  22. <i {{bindAttr class="view.iconClass"}}></i>
  23. {{#if view.isOpen}}Hide{{else}}Show{{/if}} info about {{operation.command}} {{operation.role}} on {{operation.host_name}}
  24. </a>
  25. <div class="content-area">
  26. <div class="textTrigger">click to highlight</div>
  27. {{#if view.isOpen}}
  28. {{#if view.isTextArea}}
  29. <div>
  30. {{view view.textArea contentBinding="operation"}}
  31. </div>
  32. {{else}}
  33. <div>
  34. <h5>exitcode:</h5>
  35. <pre class="stderr">{{operation.exit_code}}</pre>
  36. <h5>stderr:</h5>
  37. <pre class="stderr">{{highlight operation.stderr [err;fail]}}</pre>
  38. <h5>stdout:</h5>
  39. <pre class="stdout">{{highlight operation.stdout [err;fail]}}</pre>
  40. </div>
  41. {{/if}}
  42. {{/if}}
  43. </div>
  44. </div>
  45. {{/view}}
  46. {{/each}}