2022-07-06 01:41:31 +08:00
|
|
|
<div class="current-style {{if this.maximized 'maximized'}}">
|
2017-04-12 22:52:52 +08:00
|
|
|
<div class="wrapper">
|
2020-12-08 07:54:44 +08:00
|
|
|
<div class="editor-information">
|
2022-06-30 18:30:50 +08:00
|
|
|
<DButton
|
|
|
|
@title="go_back"
|
2023-08-31 17:49:35 +08:00
|
|
|
@action={{this.goBack}}
|
2022-06-30 18:30:50 +08:00
|
|
|
@icon="chevron-left"
|
2023-08-31 17:49:35 +08:00
|
|
|
class="btn-small editor-back-button"
|
2022-06-30 18:30:50 +08:00
|
|
|
/>
|
2020-12-08 07:54:44 +08:00
|
|
|
|
|
|
|
<span class="editor-theme-name-wrapper">
|
|
|
|
{{i18n "admin.customize.theme.edit_css_html"}}
|
2022-07-06 01:41:31 +08:00
|
|
|
<LinkTo
|
|
|
|
@route={{this.showRouteName}}
|
|
|
|
@model={{this.model.id}}
|
|
|
|
@replace={{true}}
|
|
|
|
class="editor-theme-name"
|
|
|
|
>
|
|
|
|
{{this.model.name}}
|
2022-06-30 18:30:50 +08:00
|
|
|
</LinkTo>
|
2020-12-08 07:54:44 +08:00
|
|
|
</span>
|
|
|
|
</div>
|
2017-04-12 22:52:52 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<AdminThemeEditor
|
|
|
|
@theme={{this.model}}
|
|
|
|
@editRouteName={{this.editRouteName}}
|
|
|
|
@currentTargetName={{this.currentTargetName}}
|
|
|
|
@fieldName={{this.fieldName}}
|
|
|
|
@fieldAdded={{action "fieldAdded"}}
|
|
|
|
@maximized={{this.maximized}}
|
|
|
|
@onlyOverriddenChanged={{action "onlyOverriddenChanged"}}
|
|
|
|
@save={{action "save"}}
|
|
|
|
/>
|
2020-03-07 00:35:18 +08:00
|
|
|
|
2017-04-12 22:52:52 +08:00
|
|
|
<div class="admin-footer">
|
|
|
|
<div class="status-actions">
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#unless this.model.changed}}
|
2020-12-08 07:54:44 +08:00
|
|
|
<a
|
2022-07-06 01:41:31 +08:00
|
|
|
href={{this.previewUrl}}
|
2020-12-08 07:54:44 +08:00
|
|
|
rel="noopener noreferrer"
|
|
|
|
title={{i18n "admin.customize.explain_preview"}}
|
|
|
|
class="preview-link"
|
|
|
|
target="_blank"
|
|
|
|
>
|
2020-03-07 00:35:18 +08:00
|
|
|
{{i18n "admin.customize.preview"}}
|
|
|
|
</a>
|
2017-04-12 22:52:52 +08:00
|
|
|
{{/unless}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="buttons">
|
2022-07-06 01:41:31 +08:00
|
|
|
<DButton
|
2023-08-31 17:49:35 +08:00
|
|
|
@action={{this.save}}
|
2022-07-06 01:41:31 +08:00
|
|
|
@disabled={{this.saveDisabled}}
|
|
|
|
@translatedLabel={{this.saveButtonText}}
|
2023-08-31 17:49:35 +08:00
|
|
|
class="btn-primary"
|
2022-07-06 01:41:31 +08:00
|
|
|
/>
|
2017-04-12 22:52:52 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|