diff --git a/ui/packages/consul-ui/app/components/consul/intention/list/table/index.hbs b/ui/packages/consul-ui/app/components/consul/intention/list/table/index.hbs index 06103cd64c..9dbd2a8e50 100644 --- a/ui/packages/consul-ui/app/components/consul/intention/list/table/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/intention/list/table/index.hbs @@ -1,172 +1,187 @@ - - Source -   - Destination - - Permissions - - Permissions intercept an Intention's traffic using Layer 7 criteria, such as path prefixes and http headers. - - -   - - - - - {{#if (eq item.SourceName '*') }} - All Services (*) - {{else}} - {{item.SourceName}} - {{/if}} - {{! TODO: slugify }} - - - - - - - {{capitalize (or item.Action "App aware")}} - - - - {{#if (eq item.DestinationName '*') }} - All Services (*) - {{else}} - {{item.DestinationName}} - {{/if}} - {{#if (or (can 'use nspaces') (can 'use partitions'))}} - {{! TODO: slugify }} - - {{or item.DestinationPartition 'default'}} / {{or item.DestinationNS 'default'}} - - {{/if}} - - - - {{#if (gt item.Permissions.length 0)}} - {{pluralize item.Permissions.length 'Permission'}} - {{/if}} - - - {{#if item.IsManagedByCRD}} - - {{/if}} - - - - + + Source +   + Destination + + Permissions + + Permissions intercept an Intention's traffic using Layer 7 criteria, such as path + prefixes and http headers. + + +   + + + + - - More - - - {{#if (can "write intention" item=item)}} -
  • - Edit -
  • -
  • - -
    - - <:header> - Confirm Delete - - <:body> -

    - Are you sure you want to delete this intention? -

    - - <:actions as |Actions|> - - - Delete - - - - - Cancel - - - -
    -
    -
  • - {{else if (can "view CRD intention" item=item)}} -
  • -
    - - <:header> - - - Managed by CRD - - - <:body> -

    - This intention is being managed through an Intention Custom Resource in your Kubernetes cluster. It is view only in the UI. -

    - - <:actions as |Actions|> - - - View - - - - - Cancel - - - -
    -
    -
  • - {{else}} -
  • - - View - -
  • - {{/if}} -
    -
    -
    + {{#if (eq item.SourceName '*')}} + All Services (*) + {{else}} + {{item.SourceName}} + {{/if}} + {{! TODO: slugify }} + + + + + + + {{capitalize (or item.Action 'App aware')}} + + + + {{#if (eq item.DestinationName '*')}} + All Services (*) + {{else}} + {{item.DestinationName}} + {{/if}} + {{#if (or (can 'use nspaces') (can 'use partitions'))}} + {{! TODO: slugify }} + + {{or + item.DestinationPartition + 'default' + }} + / + {{or + item.DestinationNS + 'default' + }} + + {{/if}} + + + + {{#if (gt item.Permissions.length 0)}} + {{pluralize item.Permissions.length 'Permission'}} + {{/if}} + + + {{#if item.IsManagedByCRD}} + + {{/if}} + + + + + + More + + + {{#if (can 'write intention' item=item)}} +
  • + Edit +
  • +
  • + +
    + + <:header> + Confirm Delete + + <:body> +

    + Are you sure you want to delete this intention? +

    + + <:actions as |Actions|> + + + Delete + + + + + Cancel + + + +
    +
    +
  • + {{else if (can 'view CRD intention' item=item)}} +
  • +
    + + <:header> + + + Managed by CRD + + + <:body> +

    + This intention is being managed through an Intention Custom Resource in your + Kubernetes cluster. It is view only in the UI. +

    + + <:actions as |Actions|> + + + View + + + + + Cancel + + + +
    +
    +
  • + {{else}} +
  • + + View + +
  • + {{/if}} +
    +
    +