Browse Source

feat: copy edits for built-in policy alert

pull/18655/head
valeriia-ruban 1 year ago
parent
commit
bf3963fe0c
  1. 28
      ui/packages/consul-ui/app/templates/dc/acls/policies/edit.hbs

28
ui/packages/consul-ui/app/templates/dc/acls/policies/edit.hbs

@ -76,25 +76,15 @@ as |dc partition nspace id item create|}}
</div> </div>
{{/if}} {{/if}}
{{#if (or (eq (policy/typeof item) 'policy-management') (eq (policy/typeof item) 'read-only'))}} {{#if (or (eq (policy/typeof item) 'policy-management') (eq (policy/typeof item) 'read-only'))}}
{{#if (eq (policy/typeof item) 'policy-management')}} <Hds::Alert @type="inline" @icon="star-fill" class="mb-3 mt-2" as |A|>
<Hds::Alert @type="inline" @icon="star-fill" class="mb-3 mt-2" as |A|> <A.Title>Built-in policy</A.Title>
<A.Title>Management</A.Title> <A.Description>This policy is built into Consul's ACL system. You can use this special policy by adding it to a token. This policy is not editable or removable, but can be ignored by not applying it to any tokens.
<A.Description>This global-management token is built into Consul's policy system. You can apply this special policy to tokens for full access. This policy is not editable or removeable, but can be ignored by not applying it to any tokens.</A.Description> </A.Description>
<A.Link::Standalone @text='Learn more' <A.Link::Standalone @text='Learn more'
@href="{{env 'CONSUL_DOCS_URL'}}/guides/acl.html#builtin-policies" @href="{{env 'CONSUL_DOCS_URL'}}/guides/acl.html#builtin-policies"
@icon='docs-link' @icon='docs-link'
@iconPosition='trailing' /> @iconPosition='trailing' />
</Hds::Alert> </Hds::Alert>
{{else}}
<Hds::Alert @type="inline" @icon="star-fill" class="mb-3 mt-2" as |A|>
<A.Title>Built-in policy</A.Title>
<A.Description>This global-read-only policy is built into Consul's policy system. You can apply this special policy to tokens for read-only access to all Consul components. This policy is not editable or removable, but can be ignored by not applying it to any tokens.</A.Description>
<A.Link::Standalone @text='Learn more'
@href="{{env 'CONSUL_DOCS_URL'}}/guides/acl.html#builtin-policies"
@icon='docs-link'
@iconPosition='trailing' />
</Hds::Alert>
{{/if}}
<div class="definition-table"> <div class="definition-table">
<dl> <dl>
<dt>Name</dt> <dt>Name</dt>

Loading…
Cancel
Save