mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 06:12:03 +03:00
096dffb817
closes: https://github.com/TryGhost/Ghost/issues/15505 When starting Ghost with a missing active theme, the design settings screen and change theme screen both end up in a broken state with the user unable to select a new theme as the active one. The design screen has no default (or blank) slate, and so shows a preview of an empty theme. - First added a new default screen to serve as a placeholder for when the state contains no active theme. - Added a check for when there was no active theme, then redirects the user to the default screen . The change theme screen wants to set an active property on the theme that should be active in the theme list. - Added a check to see whether there is an active theme set. - If there isn't one, don't bother trying to add the active property.
20 lines
679 B
Handlebars
20 lines
679 B
Handlebars
<section class="gh-canvas gh-design">
|
|
<GhCanvasHeader class="gh-canvas-header">
|
|
<h2 class="gh-canvas-title">Site design</h2>
|
|
<section class="view-actions">
|
|
</section>
|
|
</GhCanvasHeader>
|
|
<div class="view-container ">
|
|
<ol class="posts-list gh-list">
|
|
<li class="no-posts-box">
|
|
<div class="no-posts">
|
|
<h4>No theme is currently active</h4>
|
|
<LinkTo @route="settings.design.change-theme" class="gh-btn">
|
|
<span>Activate a theme</span>
|
|
</LinkTo>
|
|
</div>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
</section>
|
|
{{outlet}} |