{{#if editingName}} {{text-field value=model.name autofocus="true"}} {{d-button action="finishedEditingName" class="btn-primary btn-small submit-edit" icon="check"}} {{d-button action="cancelEditingName" class="btn-small cancel-edit" icon="times"}} {{else}} {{model.name}} {{d-icon "pencil"}} {{/if}}

{{#if model.remote_theme}}

{{i18n "admin.customize.theme.about_theme"}}

{{#if model.remote_theme.license_url}}

{{i18n "admin.customize.theme.license"}} {{d-icon "copyright"}}

{{/if}} {{/if}} {{#if parentThemes}}

{{i18n "admin.customize.theme.component_of"}}

{{else}}

{{inline-edit-checkbox action="applyDefault" labelKey="admin.customize.theme.is_default" checked=model.default}} {{inline-edit-checkbox action="applyUserSelectable" labelKey="admin.customize.theme.user_selectable" checked=model.user_selectable}}

{{i18n "admin.customize.theme.color_scheme"}}

{{i18n "admin.customize.theme.color_scheme_select"}}

{{combo-box content=colorSchemes nameProperty="name" value=colorSchemeId selectionIcon="paint-brush" valueAttribute="id"}} {{#if colorSchemeChanged}} {{d-button action="changeScheme" class="btn-primary btn-small submit-edit" icon="check"}} {{d-button action="cancelChangeScheme" class="btn-small cancel-edit" icon="times"}} {{/if}}

{{#link-to 'adminCustomize.colors' class="btn edit"}}{{i18n 'admin.customize.colors.edit'}}{{/link-to}} {{/if}}

{{i18n "admin.customize.theme.css_html"}}

{{#if hasEditedFields}}

{{i18n "admin.customize.theme.custom_sections"}}

{{else}}

{{i18n "admin.customize.theme.edit_css_html_help"}}

{{/if}}

{{#if model.remote_theme}} {{#if model.remote_theme.commits_behind}} {{#d-button action="updateToLatest" icon="download" class='btn-primary'}}{{i18n "admin.customize.theme.update_to_latest"}}{{/d-button}} {{else}} {{#d-button action="checkForThemeUpdates" icon="refresh"}}{{i18n "admin.customize.theme.check_for_updates"}}{{/d-button}} {{/if}} {{/if}} {{#d-button action="editTheme" class="btn edit"}}{{i18n 'admin.customize.theme.edit_css_html'}}{{/d-button}} {{#if model.remote_theme}} {{#if updatingRemote}} {{i18n 'admin.customize.theme.updating'}} {{else}} {{#if model.remote_theme.commits_behind}} {{i18n 'admin.customize.theme.commits_behind' count=model.remote_theme.commits_behind}} {{else}} {{i18n 'admin.customize.theme.up_to_date'}} {{format-date model.remote_theme.updated_at leaveAgo="true"}} {{/if}} {{/if}} {{/if}}

{{i18n "admin.customize.theme.uploads"}}

{{#if model.uploads}} {{else}}

{{i18n "admin.customize.theme.no_uploads"}}

{{/if}}

{{#d-button action="addUploadModal" icon="plus"}}{{i18n "admin.customize.theme.add"}}{{/d-button}}

{{#if availableChildThemes}}

{{i18n "admin.customize.theme.theme_components"}}

{{#unless model.childThemes.length}}

{{else}} {{/unless}} {{#if selectableChildThemes}}

{{combo-box content=selectableChildThemes nameProperty="name" value=selectedChildThemeId valueAttribute="id"}} {{#d-button action="addChildTheme" icon="plus"}}{{i18n "admin.customize.theme.add"}}{{/d-button}}

{{/if}} {{/if}} {{d-icon 'desktop'}}{{i18n 'admin.customize.theme.preview'}} {{d-icon "download"}} {{i18n 'admin.export_json.button_text'}} {{d-button action="destroy" label="admin.customize.delete" icon="trash" class="btn-danger"}}