github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/components/task-context-sidebar.hbs (about) 1 <Portal @target="log-sidebar-portal"> 2 <div 3 class="sidebar task-context-sidebar has-subnav {{if this.isSideBarOpen "open"}}" 4 {{on-click-outside 5 @fns.closeSidebar 6 capture=true 7 }} 8 > 9 {{#if @task}} 10 {{keyboard-commands this.keyCommands}} 11 <header> 12 <h1 class="title"> 13 {{@task.name}} 14 <span class="state {{@task.state}}"> 15 {{@task.state}} 16 </span> 17 </h1> 18 <LinkTo 19 class="link" 20 title={{@task.name}} 21 @route="allocations.allocation.task" 22 @models={{array @task.allocation @task}} 23 > 24 Go to Task page 25 </LinkTo> 26 <button 27 class="button close is-borderless" 28 type="button" 29 {{on "click" @fns.closeSidebar}} 30 > 31 {{x-icon "cancel"}} 32 </button> 33 </header> 34 35 <TaskLog 36 @allocation={{@task.allocation}} 37 @task={{@task.name}} 38 @shouldFillHeight={{false}} 39 /> 40 41 42 {{/if}} 43 </div> 44 </Portal>