open-vault/ui/app/templates/partials/secret-list/item.hbs

29 lines
753 B
Handlebars
Raw Normal View History

2018-04-03 14:16:57 +00:00
{{#linked-block
(concat
"vault.cluster.secrets.backend."
(if item.isFolder "list" "show")
(if (not item.id) "-root")
)
item.id
class="box is-sideless is-marginless"
data-test-secret-link=item.id
}}
<div class="columns is-mobile">
<div class="column is-10">
{{#secret-link
mode=(if item.isFolder "list" "show")
secret=item.id
class="has-text-black has-text-weight-semibold"
}}
{{i-con
glyph=(if item.isFolder 'folder' 'file')
size=14
class="has-text-grey-light"
}}{{if (eq item.id ' ') '(self)' (or item.keyWithoutParent item.id)}}
{{/secret-link}}
</div>
<div class="column has-text-right">
</div>
</div>
{{/linked-block}}