consul/ui-v2/app/components/consul-exposed-path-list/index.hbs

70 lines
1.3 KiB
Handlebars
Raw Normal View History

2020-06-17 09:25:54 +00:00
<ul data-test-proxy-exposed-paths>
{{#each items as |path|}}
<li>
<div class="header">
{{#let (concat address ':' path.Path) as |combinedAddress|}}
2020-06-17 09:25:54 +00:00
<p class="combined-address">
<span>
{{combinedAddress}}
</span>
<CopyButton
@value={{combinedAddress}}
@name="Address"
/>
</p>
{{/let}}
2020-06-17 09:25:54 +00:00
</div>
<div class="detail">
{{#if path.Protocol}}
<dl class="protocol">
<dt>
<Tooltip>
Protocol
</Tooltip>
</dt>
<dd>
{{path.Protocol}}
</dd>
</dl>
{{/if}}
{{#if path.ListenerPort}}
<dl class="port">
<dt>
<Tooltip>
Port
</Tooltip>
</dt>
<dd>
listening on :{{path.ListenerPort}}
</dd>
</dl>
{{/if}}
{{#if path.LocalPathPort}}
<dl class="port">
<dt>
<Tooltip>
Port
</Tooltip>
</dt>
<dd>
local port :{{path.LocalPathPort}}
</dd>
</dl>
{{/if}}
{{#if path.Path}}
<dl class="path">
<dt>
<Tooltip>
Path
</Tooltip>
</dt>
<dd>
{{path.Path}}
</dd>
</dl>
{{/if}}
2020-06-17 09:25:54 +00:00
</div>
</li>
{{/each}}
</ul>