2022-06-07 01:42:23 +00:00
{{ page-title "Secure Variables: " this .model .absolutePath }}
{{ # each this .breadcrumbs as | crumb | }}
<Breadcrumb @crumb= {{ crumb }} />
{{ / each }}
<section class="section">
<div class="toolbar">
<div class="toolbar-item is-right-aligned is-mobile-full-width">
2022-07-22 20:05:35 +00:00
{{ # if this .namespaceOptions }}
<SingleSelectDropdown
data-test-variable-namespace-filter
@label="Namespace"
@options= {{ this .namespaceOptions }}
@selection= {{ this .namespaceSelection }}
@onSelect= {{ this .setNamespace }}
/>
{{ / if }}
2022-06-07 01:42:23 +00:00
<div class="button-bar">
2022-08-01 19:33:47 +00:00
{{ # if ( can "write variable" path = this .model .absolutePath namespace = this .model .namespace ) }}
2022-06-07 01:42:23 +00:00
<LinkTo
@route="variables.new"
2022-07-06 14:48:22 +00:00
@query= {{ hash path = ( concat this .model .absolutePath "/" ) }}
2022-06-07 01:42:23 +00:00
class="button is-primary"
>
Create Secure Variable
</LinkTo>
{{ else }}
<button
class="button is-primary is-disabled tooltip is-right-aligned"
aria-label="You don’ t have sufficient permissions"
disabled
type="button"
>
Create Secure Variable
</button>
{{ / if }}
</div>
</div>
</div>
{{ # if this .model .treeAtPath }}
<VariablePaths
@branch= {{ this .model .treeAtPath }}
/>
{{ else }}
<div class="empty-message">
2022-07-22 20:05:35 +00:00
<h3 data-test-empty-variables-list-headline class="empty-message-headline">
2022-06-07 01:42:23 +00:00
Path / {{ this .model .absolutePath }} contains no variables
</h3>
<p class="empty-message-body">
To get started, <LinkTo @route="variables.new" @query= {{ hash path = ( concat this .model .absolutePath "/" ) }} >create a new secure variable here</LinkTo>, or <LinkTo @route="variables">go back to the Secure Variables root directory</LinkTo>.
</p>
</div>
{{ / if }}
</section>