2019-12-17 19:27:28 +00:00
|
|
|
<div class="resolver-card">
|
|
|
|
<header onclick={{onclick}} id={{concat 'resolver:' item.ID}}>
|
|
|
|
<a name="">
|
|
|
|
<h3>{{item.Name}}</h3>
|
|
|
|
{{#if item.Failover}}
|
|
|
|
<dl class="failover">
|
|
|
|
<dt data-tooltip={{concat item.Failover.Type ' failover'}}>{{concat item.Failover.Type ' failover'}}</dt>
|
|
|
|
<dd>
|
|
|
|
<ol>
|
|
|
|
{{#each item.Failover.Targets as |item|}}
|
|
|
|
<li>
|
|
|
|
<span>{{item}}</span>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
|
|
|
</a>
|
|
|
|
</header>
|
|
|
|
{{#if (gt item.Children.length 0)}}
|
|
|
|
<ul>
|
|
|
|
{{#each item.Children as |child|}}
|
|
|
|
<li onclick={{onclick}} id={{concat 'resolver:' child.ID}}>
|
|
|
|
<a name="">
|
|
|
|
{{#if child.Failover}}
|
|
|
|
<dl class="failover">
|
|
|
|
<dt data-tooltip={{concat child.Failover.Type ' failover'}}>{{concat child.Failover.Type ' failover'}}</dt>
|
|
|
|
<dd>
|
|
|
|
<ol>
|
|
|
|
{{#each child.Failover.Targets as |target|}}
|
|
|
|
<li>
|
|
|
|
<span>{{target}}</span>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
2020-01-16 16:31:09 +00:00
|
|
|
{{else if child.Redirect}}
|
2019-12-17 19:27:28 +00:00
|
|
|
<dl class="redirect">
|
|
|
|
<dt data-tooltip="Redirect">Redirect</dt>
|
|
|
|
<dd>
|
2020-01-16 16:31:09 +00:00
|
|
|
{{child.Name}}
|
2019-12-17 19:27:28 +00:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{else}}
|
2020-01-16 16:31:09 +00:00
|
|
|
{{child.Name}}
|
2019-12-17 19:27:28 +00:00
|
|
|
{{/if}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|