open-vault/ui/app/templates/partials/secret-list/pki-role-item.hbs
Matthew Irish 0ccc8467ec
UI ember engines (#6718)
Adds replication engine and core in-repo addon
2019-05-13 14:05:25 -05:00

41 lines
1 KiB
Handlebars

{{#linked-block
(concat
"vault.cluster.secrets.backend."
"credentials"
(if (not item.id) "-root")
)
item.backend
item.id
queryParams=(hash action="issue")
class="list-item-row"
data-test-secret-link=item.id
tagName="div"
encode=true
}}
<div class="columns is-mobile">
<div class="column is-10">
{{#link-to
(concat
"vault.cluster.secrets.backend."
"credentials"
(if (not item.id) "-root")
)
item.id
(query-params action="issue")
class="has-text-black has-text-weight-semibold"
}}
<Icon
@glyph="user-square-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>
{{/link-to}}
</div>
<div class="column has-text-right">
{{partial "partials/role-pki/popup-menu"}}
</div>
</div>
{{/linked-block}}