2021-07-09 00:44:52 +03:00
|
|
|
<div class="theme-validation-container" data-test-theme-warnings-modal="true">
|
2019-04-05 19:27:14 +03:00
|
|
|
<header class="modal-header">
|
|
|
|
<h1 data-test-theme-warnings-title>
|
|
|
|
{{#unless this.canActivate}}
|
|
|
|
{{this.title}}
|
|
|
|
{{else}}
|
|
|
|
{{this.title}} with {{#if this.errors}}errors{{else}}warnings{{/if}}
|
|
|
|
{{/unless}}
|
|
|
|
</h1>
|
|
|
|
</header>
|
2020-05-28 19:11:21 +03:00
|
|
|
<a class="close" href="#" role="button" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
2017-03-14 16:54:58 +03:00
|
|
|
|
2019-04-05 19:27:14 +03:00
|
|
|
<div class="modal-body">
|
2019-03-25 15:20:14 +03:00
|
|
|
{{#if this.fatalErrors}}
|
2019-04-05 19:27:14 +03:00
|
|
|
<div>
|
|
|
|
<h2 class="mb0 mt4 f5 fw6 red">Fatal Errors</h2>
|
|
|
|
<p class="mb2 red">Must-fix to activate theme</p>
|
2017-06-22 20:19:01 +03:00
|
|
|
</div>
|
2019-04-11 13:00:13 +03:00
|
|
|
<ul class="pa0" data-test-theme-fatal-errors>
|
2019-04-05 19:27:14 +03:00
|
|
|
{{#each this.fatalErrors as |error|}}
|
|
|
|
<li class="theme-validation-item theme-fatal-error">
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhThemeErrorLi @error={{error}} />
|
2019-04-05 19:27:14 +03:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2017-06-22 20:19:01 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2019-03-25 15:20:14 +03:00
|
|
|
{{#if this.errors}}
|
2019-04-05 19:27:14 +03:00
|
|
|
<div>
|
|
|
|
<h2 class="mb0 mt4 f5 fw6">Errors</h2>
|
|
|
|
<p class="mb2">Highly recommended to fix, functionality <span>could</span> be restricted</p>
|
2017-06-22 20:19:01 +03:00
|
|
|
</div>
|
2019-04-05 19:27:14 +03:00
|
|
|
|
2019-04-11 13:00:13 +03:00
|
|
|
<ul class="pa0" data-test-theme-errors>
|
2019-04-05 19:27:14 +03:00
|
|
|
{{#each this.errors as |error|}}
|
|
|
|
<li class="theme-validation-item theme-error">
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhThemeErrorLi @error={{error}} />
|
2019-04-05 19:27:14 +03:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2017-06-22 20:19:01 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2019-03-25 15:20:14 +03:00
|
|
|
{{#if (and this.warnings (or this.fatalErrors this.errors))}}
|
2019-04-05 19:27:14 +03:00
|
|
|
<div>
|
|
|
|
<h2 class="mb0 mt4 f5 fw6">Warnings</h2>
|
2017-06-22 20:19:01 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-04-05 19:27:14 +03:00
|
|
|
{{#if this.warnings}}
|
|
|
|
<ul class="pa0" data-test-theme-warnings>
|
|
|
|
{{#each this.warnings as |error|}}
|
|
|
|
<li class="theme-validation-item theme-warning">
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhThemeErrorLi @error={{error}} />
|
2019-04-05 19:27:14 +03:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2017-03-14 16:54:58 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button {{action "closeModal"}} class="gh-btn" data-test-modal-close-button>
|
2019-03-25 15:20:14 +03:00
|
|
|
<span>Ok</span>
|
2017-03-14 16:54:58 +03:00
|
|
|
</button>
|
|
|
|
</div>
|