2017-07-20 13:30:45 +03:00
|
|
|
<a href="" class="theme-validation-toggle-details" {{action "toggleDetails"}} data-test-toggle-details>
|
2019-04-05 19:27:14 +03:00
|
|
|
<div class="theme-validation-type-label"></div>
|
|
|
|
<div class="flex items-center flex-auto">
|
|
|
|
<h4 class="theme-validation-rule-text">
|
2019-12-13 17:20:29 +03:00
|
|
|
{{{this.error.rule}}}
|
2019-04-05 19:27:14 +03:00
|
|
|
</h4>
|
|
|
|
<div class="theme-validation-rule-icon">
|
2019-12-13 17:20:29 +03:00
|
|
|
{{#if this.showDetails}}
|
2019-04-05 19:27:14 +03:00
|
|
|
{{svg-jar "arrow-down"}}
|
|
|
|
{{else}}
|
|
|
|
{{svg-jar "arrow-right"}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2017-07-20 13:30:45 +03:00
|
|
|
</div>
|
|
|
|
</a>
|
2017-03-14 16:54:58 +03:00
|
|
|
|
2019-12-13 17:20:29 +03:00
|
|
|
{{#if this.showDetails}}
|
2017-07-20 13:30:45 +03:00
|
|
|
<p class="theme-validation-details">
|
2019-12-13 17:20:29 +03:00
|
|
|
{{{this.error.details}}}
|
2017-07-20 13:30:45 +03:00
|
|
|
</p>
|
2019-12-13 17:20:29 +03:00
|
|
|
{{#if this.error.failures}}
|
2017-07-20 13:30:45 +03:00
|
|
|
<div class="theme-validation-list">
|
|
|
|
<h6>Affected files:</h6>
|
|
|
|
<ul>
|
2019-12-13 17:20:29 +03:00
|
|
|
{{#each this.error.failures as |failure|}}
|
2017-07-20 13:30:45 +03:00
|
|
|
<li><code>{{failure.ref}}</code>{{#if failure.message}}: {{failure.message}}{{/if}}</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|