mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
092b59fe3f
closes https://github.com/TryGhost/Ghost/issues/8127 - update theme activation to manually set other themes to `active: false` in the store now that we only the active theme back from `/themes/:name/activate` endpoint - move theme warning list item rendering into `{{gh-theme-error-li error=x}}` - add `theme-warnings` modal that accepts a warnings list, title, and optional message - after activating a theme, check if the theme has any warnings or errors and display an appropriate modal informing the user
13 lines
300 B
Handlebars
13 lines
300 B
Handlebars
<li>
|
|
{{#if error.details}}
|
|
{{{error.details}}}
|
|
{{else}}
|
|
{{{error.rule}}}
|
|
{{/if}}
|
|
|
|
<ul>
|
|
{{#each error.failures as |failure|}}
|
|
<li><code>{{failure.ref}}</code>{{#if failure.message}}: {{failure.message}}{{/if}}</li>
|
|
{{/each}}
|
|
</ul>
|
|
</li>
|