open-vault/ui/app/templates/components/secret-list/pki-cert-item.hbs
Angel Garbarino 98c2ba2e6c
secret-list/item partial removed (#11710)
* secret-list/item partial removed

* remove all partials and I'm sure break many things.

* changing props types and breaking more things

* cleanup

* fix options for backend

* fix transform list item test
2021-06-02 08:59:31 -06:00

30 lines
864 B
Handlebars

{{#linked-block
(concat
"vault.cluster.secrets.backend."
"show"
(unless @item.id "-root")
)
@item.idForNav
class="list-item-row"
data-test-secret-link=@item.id
tagName="div"
encode=true
}}
<div class="columns is-mobile">
<div class="column is-10">
<LinkTo @route={{concat "vault.cluster.secrets.backend." "show" (unless @item.id "-root") }} @model={{@item.idForNav}} class="has-text-black has-text-weight-semibold">
<Icon
@glyph="file-outline"
class="has-text-grey-light is-pulled-left"
/>
<div class="role-item-details">
<span class="is-underline">{{if (eq @item.id " ") "(self)" (or @item.keyWithoutParent @item.id)}}</span>
</div>
</LinkTo>
</div>
<div class="column has-text-right">
<PkiCertPopup @item={{@item}} />
</div>
</div>
{{/linked-block}}