mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
18 lines
647 B
Handlebars
18 lines
647 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
{{!-- Either link to a new variable with a pre-filled path, or the existing variable in edit mode, depending if it exists --}}
|
|
{{#if (can "write variable")}}
|
|
{{#with (editable-variable-link @path existingPaths=@existingPaths namespace=@namespace) as |link|}}
|
|
{{#if link.model}}
|
|
<Hds::Link::Inline @route={{link.route}} @model={{link.model}} @query={{link.query}}>{{@path}}</Hds::Link::Inline>
|
|
{{else}}
|
|
<Hds::Link::Inline @route={{link.route}} @query={{link.query}}>{{@path}}</Hds::Link::Inline>
|
|
{{/if}}
|
|
{{/with}}
|
|
{{else}}
|
|
{{@path}}
|
|
{{/if}}
|