mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 06:12:03 +03:00
ea9c8c03fe
refs https://github.com/TryGhost/Ghost/pull/15550 Pulled out of the rolled up node+ember-js+ember-template rollup linter update PR as it required fairly extensive changes. - bumped package - renamed `no-down-event-binding` to `no-pointer-down-event-binding` - disabled `no-pointer-down-event-binding` rule - disabled `no-triple-curlies` rule - ran `yarn lint:hbs --fix` - updated integration tests to match Octane syntax - fixed various one-off errors - updated .lint-todo
67 lines
2.6 KiB
Handlebars
67 lines
2.6 KiB
Handlebars
<div class="modal-content">
|
|
<div class="theme-validation-container" data-test-modal="theme-errors">
|
|
<header class="modal-header">
|
|
<h1 data-test-theme-warnings-title>
|
|
{{#if @data.canActivate}}
|
|
{{@data.title}} with {{#if @data.errors}}errors{{else}}warnings{{/if}}
|
|
{{else}}
|
|
{{@data.title}}
|
|
{{/if}}
|
|
</h1>
|
|
</header>
|
|
<button type="button" class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
|
|
|
|
<div class="modal-body">
|
|
{{#if @data.fatalErrors}}
|
|
<div>
|
|
<h2 class="mb0 mt4 f5 fw6 red">Fatal Errors</h2>
|
|
<p class="mb2 red">Must-fix to activate theme</p>
|
|
</div>
|
|
<ul class="pa0" data-test-theme-fatal-errors>
|
|
{{#each @data.fatalErrors as |error|}}
|
|
<li class="theme-validation-item theme-fatal-error">
|
|
<GhThemeErrorLi @error={{error}} />
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
{{/if}}
|
|
|
|
{{#if @data.errors}}
|
|
<div>
|
|
<h2 class="mb0 mt4 f5 fw6">Errors</h2>
|
|
<p class="mb2">Highly recommended to fix, functionality <span>could</span> be restricted</p>
|
|
</div>
|
|
|
|
<ul class="pa0" data-test-theme-errors>
|
|
{{#each @data.errors as |error|}}
|
|
<li class="theme-validation-item theme-error">
|
|
<GhThemeErrorLi @error={{error}} />
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
{{/if}}
|
|
|
|
{{#if (and @data.warnings (or @data.fatalErrors @data.errors))}}
|
|
<div>
|
|
<h2 class="mb0 mt4 f5 fw6">Warnings</h2>
|
|
</div>
|
|
{{/if}}
|
|
{{#if @data.warnings}}
|
|
<ul class="pa0" data-test-theme-warnings>
|
|
{{#each @data.warnings as |error|}}
|
|
<li class="theme-validation-item theme-warning">
|
|
<GhThemeErrorLi @error={{error}} />
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" {{on "click" @close}} class="gh-btn" data-test-modal-close-button>
|
|
<span>Ok</span>
|
|
</button>
|
|
</div>
|
|
|
|
</div> |