mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
51 lines
1.0 KiB
Handlebars
51 lines
1.0 KiB
Handlebars
<Portal @target="log-sidebar-portal">
|
|
<div
|
|
class="sidebar task-context-sidebar has-subnav {{if this.wide "wide"}} {{if this.isSideBarOpen "open"}}"
|
|
{{on-click-outside
|
|
@fns.closeSidebar
|
|
capture=true
|
|
}}
|
|
>
|
|
{{#if @task}}
|
|
{{keyboard-commands this.keyCommands}}
|
|
<header>
|
|
<h1 class="title">
|
|
{{@task.name}}
|
|
<span class="state {{@task.state}}">
|
|
{{@task.state}}
|
|
</span>
|
|
</h1>
|
|
<LinkTo
|
|
class="link"
|
|
title={{@task.name}}
|
|
@route="allocations.allocation.task"
|
|
@models={{array @task.allocation @task}}
|
|
>
|
|
Go to Task page
|
|
</LinkTo>
|
|
<button
|
|
class="button close is-borderless"
|
|
type="button"
|
|
{{on "click" @fns.closeSidebar}}
|
|
>
|
|
{{x-icon "cancel"}}
|
|
</button>
|
|
</header>
|
|
|
|
<TaskLog
|
|
@allocation={{@task.allocation}}
|
|
@task={{@task.name}}
|
|
@shouldFillHeight={{false}}
|
|
/>
|
|
|
|
|
|
{{/if}}
|
|
<button
|
|
class="button is-borderless widener"
|
|
type="button"
|
|
{{on "click" this.toggleWide}}
|
|
>
|
|
{{x-icon (if this.wide "arrow-right" "arrow-left")}}
|
|
</button>
|
|
</div>
|
|
</Portal> |