discourse/app/assets/javascripts/admin/addon/templates/customize-themes-edit.hbs

37 lines
1.4 KiB
Handlebars

<div class="current-style {{if maximized "maximized"}}">
<div class="wrapper">
<div class="editor-information">
<DButton @title="go_back" @action={{action "goBack"}} @icon="chevron-left" @class="btn-small editor-back-button" />
<span class="editor-theme-name-wrapper">
{{i18n "admin.customize.theme.edit_css_html"}}
<LinkTo @route={{showRouteName}} @model={{model.id}} @replace={{true}} class="editor-theme-name">
{{model.name}}
</LinkTo>
</span>
</div>
<AdminThemeEditor @theme={{model}} @editRouteName={{editRouteName}} @currentTargetName={{currentTargetName}} @fieldName={{fieldName}} @fieldAdded={{action "fieldAdded"}} @maximized={{maximized}} @onlyOverriddenChanged={{action "onlyOverriddenChanged"}} @save={{action "save"}} />
<div class="admin-footer">
<div class="status-actions">
{{#unless model.changed}}
<a
href={{previewUrl}}
rel="noopener noreferrer"
title={{i18n "admin.customize.explain_preview"}}
class="preview-link"
target="_blank"
>
{{i18n "admin.customize.preview"}}
</a>
{{/unless}}
</div>
<div class="buttons">
<DButton @action={{action "save"}} @disabled={{saveDisabled}} @class="btn-primary" @translatedLabel={{saveButtonText}} />
</div>
</div>
</div>
</div>