2017-02-21 22:04:50 +03:00
|
|
|
<section class="gh-canvas">
|
|
|
|
<header class="gh-canvas-header">
|
2017-05-30 16:23:38 +03:00
|
|
|
<h2 class="gh-canvas-title" data-test-screen-title>Design</h2>
|
2017-02-21 22:04:50 +03:00
|
|
|
<section class="view-actions">
|
2017-05-18 13:48:37 +03:00
|
|
|
{{gh-task-button task=save class="gh-btn gh-btn-blue gh-btn-icon" data-test-save-button=true}}
|
2017-02-21 22:04:50 +03:00
|
|
|
</section>
|
|
|
|
</header>
|
|
|
|
|
2017-10-31 18:27:25 +03:00
|
|
|
{{#if showLeaveSettingsModal}}
|
|
|
|
{{gh-fullscreen-modal "leave-settings"
|
|
|
|
confirm=(action "leaveSettings")
|
|
|
|
close=(action "toggleLeaveSettingsModal")
|
|
|
|
modifier="action wide"}}
|
|
|
|
{{/if}}
|
|
|
|
|
2017-02-21 22:04:50 +03:00
|
|
|
<section class="view-container">
|
|
|
|
<div class="gh-setting-header">Navigation</div>
|
2017-02-27 09:31:01 +03:00
|
|
|
<div class="gh-blognav-container">
|
|
|
|
<form id="settings-navigation" class="gh-blognav" novalidate="novalidate">
|
2017-10-31 12:10:49 +03:00
|
|
|
{{#sortable-objects sortableObjectList=model.navigation useSwap=false}}
|
2017-02-27 09:31:01 +03:00
|
|
|
{{#each model.navigation as |navItem|}}
|
2017-10-31 12:10:49 +03:00
|
|
|
{{#draggable-object content=navItem dragHandle=".gh-blognav-grab" isSortable=true}}
|
2017-10-31 18:27:25 +03:00
|
|
|
{{gh-navitem navItem=navItem baseUrl=blogUrl addItem="addNavItem" deleteItem="deleteNavItem" updateUrl="updateUrl" updateLabel="updateLabel"}}
|
2017-10-31 12:10:49 +03:00
|
|
|
{{/draggable-object}}
|
2017-02-27 09:31:01 +03:00
|
|
|
{{/each}}
|
2017-10-31 12:10:49 +03:00
|
|
|
{{/sortable-objects}}
|
2017-02-27 09:31:01 +03:00
|
|
|
{{gh-navitem navItem=newNavItem baseUrl=blogUrl addItem="addNavItem" updateUrl="updateUrl"}}
|
|
|
|
</form>
|
2017-02-21 22:04:50 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gh-setting-header">Themes</div>
|
2017-02-27 09:31:01 +03:00
|
|
|
<div class="gh-themes-container">
|
|
|
|
{{gh-theme-table
|
|
|
|
themes=themes
|
2017-03-03 18:31:42 +03:00
|
|
|
activateTheme=(action "activateTheme")
|
2017-02-27 09:31:01 +03:00
|
|
|
downloadTheme=(action "downloadTheme")
|
|
|
|
deleteTheme=(action "deleteTheme")}}
|
2017-02-21 22:04:50 +03:00
|
|
|
|
2017-02-27 09:31:01 +03:00
|
|
|
{{#link-to "settings.design.uploadtheme" class="gh-btn gh-btn-green gh-themes-uploadbtn" data-test-upload-theme-button=true}}
|
|
|
|
<span>Upload a theme</span>
|
|
|
|
{{/link-to}}
|
2017-02-21 22:04:50 +03:00
|
|
|
|
2017-02-27 09:31:01 +03:00
|
|
|
|
|
|
|
{{#if showDeleteThemeModal}}
|
|
|
|
{{gh-fullscreen-modal "delete-theme"
|
|
|
|
model=(hash
|
|
|
|
theme=themeToDelete
|
|
|
|
download=(action "downloadTheme" themeToDelete)
|
|
|
|
)
|
|
|
|
close=(action "hideDeleteThemeModal")
|
|
|
|
confirm=(action "deleteTheme")
|
|
|
|
modifier="action wide"}}
|
|
|
|
{{/if}}
|
2017-03-14 16:54:58 +03:00
|
|
|
|
|
|
|
{{#if showThemeWarningsModal}}
|
|
|
|
{{gh-fullscreen-modal "theme-warnings"
|
|
|
|
model=(hash
|
2017-08-02 13:30:47 +03:00
|
|
|
title="Activation successful"
|
2017-03-14 16:54:58 +03:00
|
|
|
warnings=themeWarnings
|
2017-06-22 20:19:01 +03:00
|
|
|
errors=themeErrors
|
|
|
|
message=message
|
2017-08-02 13:30:47 +03:00
|
|
|
canActivate=true
|
2017-03-14 16:54:58 +03:00
|
|
|
)
|
|
|
|
close=(action "hideThemeWarningsModal")
|
|
|
|
modifier="action wide"}}
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if showThemeErrorsModal}}
|
|
|
|
{{gh-fullscreen-modal "theme-warnings"
|
|
|
|
model=(hash
|
2017-06-22 20:19:01 +03:00
|
|
|
title="Activation failed"
|
|
|
|
errors=themeErrors
|
|
|
|
fatalErrors=themeFatalErrors
|
2017-08-02 13:30:47 +03:00
|
|
|
canActivate=false
|
2017-03-14 16:54:58 +03:00
|
|
|
)
|
|
|
|
close=(action "hideThemeWarningsModal")
|
|
|
|
modifier="action wide"}}
|
|
|
|
{{/if}}
|
2017-02-21 22:04:50 +03:00
|
|
|
</div>
|
2017-02-27 09:31:01 +03:00
|
|
|
|
2017-02-21 22:04:50 +03:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{outlet}}
|
2017-06-08 18:00:10 +03:00
|
|
|
|
|
|
|
{{gh-tour-item "upload-a-theme"
|
|
|
|
target=".gh-themes-uploadbtn"
|
|
|
|
throbberAttachment="top middle"
|
|
|
|
popoverTriangleClass="bottom"
|
|
|
|
}}
|