upgrade_task.hbs 3.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. {{#unless view.outsideView}}
  19. <div {{bindAttr class="view.content.isActive::not-active-link"}}>{{statusIcon view.content.status}}<a
  20. href="#" {{action toggleExpanded view.content view.tasks target="view.parentView"}}>{{view.content.command_detail}}</a>
  21. </div>
  22. {{/unless}}
  23. {{#if view.showContent}}
  24. {{#if view.content}}
  25. <div class="task-details task-detail-info">
  26. <ul class="nav nav-tabs">
  27. <li class="active"><a data-toggle="tab" {{bindAttr href="view.logTabIdLink"}}>{{t common.stdout}}</a></li>
  28. <li><a {{bindAttr href="view.errorTabIdLInk"}} data-toggle="tab">{{t common.stderr}}</a></li>
  29. </ul>
  30. <div class="tab-content">
  31. <div class="tab-pane active" {{bindAttr id="view.logTabId"}}>
  32. <p>{{view.content.host_name}}</p>
  33. <div class="row-fluid">
  34. <p class="pull-left">{{view.content.output_log}}</p>
  35. <div class="manage-controls pull-right">
  36. <a title="Click to Copy" {{action copyOutLog view.content target="view"}} class="task-detail-copy">
  37. <i class="icon-copy"></i> {{t common.copy}}
  38. </a>
  39. <a {{translateAttr title="common.openNewWindow"}} {{action openOutLog target="view"}} class="task-detail-open-dialog">
  40. <i class="icon-external-link"></i> {{t common.open}}
  41. </a>
  42. </div>
  43. </div>
  44. <pre {{bindAttr class="view.outputLogOpened:hidden :stdout"}}>{{view.content.stdout}}</pre>
  45. {{view Ember.TextArea valueBinding="view.content.stdout" classBinding="view.outputLogOpened::hidden" readonly="readonly"}}
  46. </div>
  47. <div class="tab-pane" {{bindAttr id="view.errorTabId"}}>
  48. <p>{{view.content.host_name}}</p>
  49. <div class="row-fluid">
  50. <p class="pull-left">{{view.content.error_log}}</p>
  51. <div class="manage-controls pull-right">
  52. <a title="Click to Copy" {{action copyErrLog view.content target="view"}} class="task-detail-copy">
  53. <i class="icon-copy"></i> {{t common.copy}}
  54. </a>
  55. <a {{translateAttr title="common.openNewWindow"}} {{action openErrorLog target="view"}} class="task-detail-open-dialog">
  56. <i class="icon-external-link"></i> {{t common.open}}
  57. </a>
  58. </div>
  59. </div>
  60. <pre {{bindAttr class="view.errorLogOpened:hidden :stderr"}}>{{view.content.stderr}}</pre>
  61. {{view Ember.TextArea valueBinding="view.content.stderr" classBinding="view.errorLogOpened::hidden" readonly="readonly"}}
  62. </div>
  63. </div>
  64. </div>
  65. {{else}}
  66. {{view App.SpinnerView}}
  67. {{/if}}
  68. {{/if}}