mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
bd90585956
no issue * Update error and warning styles * Refined upload dialog * Theme upload and activation style refinements
32 lines
995 B
Handlebars
32 lines
995 B
Handlebars
<a href="" class="theme-validation-toggle-details" {{action "toggleDetails"}} data-test-toggle-details>
|
|
<div class="theme-validation-type-label"></div>
|
|
<div class="flex items-center flex-auto">
|
|
<h4 class="theme-validation-rule-text">
|
|
{{{error.rule}}}
|
|
</h4>
|
|
<div class="theme-validation-rule-icon">
|
|
{{#if showDetails}}
|
|
{{svg-jar "arrow-down"}}
|
|
{{else}}
|
|
{{svg-jar "arrow-right"}}
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
|
|
{{#if showDetails}}
|
|
<p class="theme-validation-details">
|
|
{{{error.details}}}
|
|
</p>
|
|
{{#if error.failures}}
|
|
<div class="theme-validation-list">
|
|
<h6>Affected files:</h6>
|
|
<ul>
|
|
{{#each error.failures as |failure|}}
|
|
<li><code>{{failure.ref}}</code>{{#if failure.message}}: {{failure.message}}{{/if}}</li>
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|