2020-11-11 14:43:37 +00:00
|
|
|
<div
|
|
|
|
class="resolver-card"
|
|
|
|
...attributes
|
|
|
|
>
|
|
|
|
<header onclick={{optional @onclick}} id={{concat 'resolver:' @item.ID}}>
|
2019-12-17 19:27:28 +00:00
|
|
|
<a name="">
|
2020-11-11 14:43:37 +00:00
|
|
|
<h3>{{@item.Name}}</h3>
|
2019-12-17 19:27:28 +00:00
|
|
|
{{#if item.Failover}}
|
|
|
|
<dl class="failover">
|
2020-11-30 16:52:13 +00:00
|
|
|
<dt
|
|
|
|
{{tooltip (concat @item.Failover.Type ' failover')}}
|
|
|
|
>
|
2020-11-11 14:43:37 +00:00
|
|
|
{{concat @item.Failover.Type ' failover'}}
|
|
|
|
</dt>
|
2019-12-17 19:27:28 +00:00
|
|
|
<dd>
|
|
|
|
<ol>
|
2020-11-11 14:43:37 +00:00
|
|
|
{{#each @item.Failover.Targets as |item|}}
|
2019-12-17 19:27:28 +00:00
|
|
|
<li>
|
|
|
|
<span>{{item}}</span>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
|
|
|
</a>
|
|
|
|
</header>
|
2020-11-11 14:43:37 +00:00
|
|
|
{{#if (gt @item.Children.length 0)}}
|
2019-12-17 19:27:28 +00:00
|
|
|
<ul>
|
2020-11-11 14:43:37 +00:00
|
|
|
{{#each @item.Children as |child|}}
|
|
|
|
<li onclick={{optional @onclick}} id={{concat 'resolver:' child.ID}}>
|
2019-12-17 19:27:28 +00:00
|
|
|
<a name="">
|
2020-01-30 16:09:05 +00:00
|
|
|
{{#if child.Redirect}}
|
|
|
|
<dl class="redirect">
|
2020-11-30 16:52:13 +00:00
|
|
|
<dt
|
|
|
|
{{tooltip "Redirect"}}
|
|
|
|
>
|
|
|
|
Redirect
|
|
|
|
</dt>
|
2020-01-30 16:09:05 +00:00
|
|
|
<dd>
|
|
|
|
{{child.Name}}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{#if child.Failover}}
|
|
|
|
<dl class="failover">
|
2020-11-30 16:52:13 +00:00
|
|
|
<dt
|
|
|
|
{{tooltip (concat child.Failover.Type ' failover')}}
|
|
|
|
>
|
|
|
|
{{concat child.Failover.Type ' failover'}}
|
|
|
|
</dt>
|
2020-01-30 16:09:05 +00:00
|
|
|
<dd>
|
|
|
|
<ol>
|
|
|
|
{{#each child.Failover.Targets as |target|}}
|
|
|
|
<li>
|
|
|
|
<span>{{target}}</span>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
|
|
|
{{else if child.Failover}}
|
|
|
|
{{child.Name}}
|
2019-12-17 19:27:28 +00:00
|
|
|
<dl class="failover">
|
2020-11-30 16:52:13 +00:00
|
|
|
<dt
|
|
|
|
{{tooltip (concat child.Failover.Type ' failover')}}
|
|
|
|
>
|
|
|
|
{{concat child.Failover.Type ' failover'}}
|
|
|
|
</dt>
|
2019-12-17 19:27:28 +00:00
|
|
|
<dd>
|
|
|
|
<ol>
|
|
|
|
{{#each child.Failover.Targets as |target|}}
|
|
|
|
<li>
|
|
|
|
<span>{{target}}</span>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
</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>
|