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

35 lines
920 B
Handlebars
Raw Normal View History

<div class="consul-intention-view">
<div class="definition-table">
<dl>
<dt>Destination</dt>
<dd>
{{item.DestinationName}}{{#if (can "use partitions")}} / {{item.DestinationPartition}}{{/if}}{{#if (can "use nspaces")}} / {{item.DestinationNS}}{{/if}}
</dd>
<dt>Source</dt>
<dd>
{{item.SourceName}}{{#if (can "use partitions")}} / {{item.SourcePartition}}{{/if}}{{#if (can "use nspaces")}} / {{item.SourceNS}}{{/if}}
</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>