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" @action={{action "goBack"}} @icon="chevron-left" @class="btn-small editor-back-button" />
|
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 @action={{action "save"}} @disabled={{this.saveDisabled}} @class="btn-primary" @translatedLabel={{this.saveButtonText}} />
|
2017-04-12 22:52:52 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|