mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 11:15:49 +08:00
05ee1d1aba
- These advanced fields are hidden behind an 'advanced' button, so will not affect normal use - The editor has been refactored into a component, and styling cleaned up so menu items do not overlap on small screens - Styling has been added to indicate which fields are in use for a theme - Icons have been added to identify which fields have errors
30 lines
1003 B
Handlebars
30 lines
1003 B
Handlebars
<div class="current-style {{if maximized 'maximized'}}">
|
|
<div class='wrapper'>
|
|
<h2>{{i18n 'admin.customize.theme.edit_css_html'}} {{#link-to showRouteName model.id replace=true}}{{model.name}}{{/link-to}}</h2>
|
|
|
|
{{admin-theme-editor
|
|
theme=model
|
|
editRouteName=editRouteName
|
|
currentTargetName=currentTargetName
|
|
fieldName=fieldName
|
|
fieldAdded=(action 'fieldAdded')
|
|
maximized=maximized
|
|
onlyOverriddenChanged=(action 'onlyOverriddenChanged')
|
|
}}
|
|
|
|
<div class='admin-footer'>
|
|
<div class='status-actions'>
|
|
{{#unless model.changed}}
|
|
<a class='preview-link' href={{previewUrl}} target='_blank' title="{{i18n 'admin.customize.explain_preview'}}">{{i18n 'admin.customize.preview'}}</a>
|
|
{{/unless}}
|
|
</div>
|
|
|
|
<div class='buttons'>
|
|
{{#d-button action=(action "save") disabled=saveDisabled class='btn-primary'}}
|
|
{{saveButtonText}}
|
|
{{/d-button}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|