open-consul/ui/packages/consul-ui/app/components/consul/intention/view/index.hbs

53 lines
1.2 KiB
Handlebars
Raw Normal View History

<div class="consul-intention-view">
<div class="definition-table">
<dl>
<dt>Destination</dt>
<dd>
<Consul::Bucket::List
@item={{hash
Namespace=item.DestinationNS
Partition=item.DestinationPartition
Service=item.DestinationName
}}
@nspace="-"
@partition="-"
@service={{true}}
/>
</dd>
<dt>Source</dt>
<dd>
<Consul::Bucket::List
@item={{hash
Namespace=item.SourceNS
Partition=item.SourcePartition
Service=item.SourceName
}}
@nspace="-"
@partition="-"
@service={{true}}
/>
</dd>
{{#if item.Action}}
<dt>Action</dt>
<dd>
{{item.Action}}
</dd>
{{/if}}
<dt>Description</dt>
<dd>
{{or item.Description 'N/A'}}
</dd>
</dl>
</div>
{{#if (gt item.Permissions.length 0) }}
<h2>Permissions</h2>
<Consul::Intention::Notice::Permissions />
<Consul::Intention::Permission::List
@items={{item.Permissions}}
/>
{{/if}}
</div>