{{#if editingName}} {{text-field value=model.name autofocus="true"}} {{d-button action=(action "finishedEditingName") class="btn-primary submit-edit" icon="check"}} {{d-button action=(action "cancelEditingName") class="btn-default cancel-edit" icon="times"}} {{else}} {{model.name}} {{d-icon "pencil-alt"}} {{/if}}
{{#each model.errors as |error|}}
{{error}}
{{/each}} {{#unless model.enabled}}
{{i18n "admin.customize.theme.required_version.error"}} {{#if model.remote_theme.minimum_discourse_version}} {{i18n "admin.customize.theme.required_version.minimum" version=model.remote_theme.minimum_discourse_version}} {{/if}} {{#if model.remote_theme.maximum_discourse_version}} {{i18n "admin.customize.theme.required_version.minimum" version=model.remote_theme.maximum_discourse_version}} {{/if}}
{{/unless}} {{#unless model.component}}
{{inline-edit-checkbox action=(action "applyDefault") labelKey="admin.customize.theme.is_default" checked=model.default}} {{inline-edit-checkbox action=(action "applyUserSelectable") labelKey="admin.customize.theme.user_selectable" checked=model.user_selectable}}
{{/unless}} {{#if model.remote_theme}} {{#if model.remote_theme.remote_url}} {{i18n "admin.customize.theme.source_url"}} {{d-icon "link"}} {{/if}} {{#if model.remote_theme.about_url}} {{i18n "admin.customize.theme.about_theme"}} {{d-icon "link"}} {{/if}} {{#if model.remote_theme.license_url}} {{i18n "admin.customize.theme.license"}} {{d-icon "link"}} {{/if}} {{#if model.description}} {{model.description}} {{/if}} {{#if model.remote_theme.authors}}{{i18n "admin.customize.theme.authors"}} {{model.remote_theme.authors}}{{/if}} {{#if model.remote_theme.theme_version}}{{i18n "admin.customize.theme.version"}} {{model.remote_theme.theme_version}}{{/if}}
{{#if model.remote_theme.is_git}} {{#if showRemoteError}}
{{d-icon "exclamation-triangle"}} {{I18n "admin.customize.theme.repo_unreachable"}}
{{model.remoteError}}
{{/if}} {{#if model.remote_theme.commits_behind}} {{#d-button action=(action "updateToLatest") icon="download" class='btn-primary'}}{{i18n "admin.customize.theme.update_to_latest"}}{{/d-button}} {{else}} {{#d-button action=(action "checkForThemeUpdates") icon="refresh" class="btn-default"}}{{i18n "admin.customize.theme.check_for_updates"}}{{/d-button}} {{/if}} {{#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}} {{#if model.remote_theme.github_diff_link}} {{i18n 'admin.customize.theme.compare_commits'}} {{/if}} {{else}} {{#unless showRemoteError}} {{i18n 'admin.customize.theme.up_to_date'}} {{format-date model.remote_theme.updated_at leaveAgo="true"}} {{/unless}} {{/if}} {{/if}} {{else}} {{d-icon "info-circle"}} {{i18n "admin.customize.theme.imported_from_archive"}} {{/if}}
{{/if}} {{#unless model.component}}
{{i18n "admin.customize.theme.color_scheme"}}
{{i18n "admin.customize.theme.color_scheme_select"}}
{{combo-box content=colorSchemes filterable=true forceEscape=true value=colorSchemeId icon="paint-brush"}} {{#if colorSchemeChanged}} {{d-button action=(action "changeScheme") class="btn-primary submit-edit" icon="check"}} {{d-button action=(action "cancelChangeScheme") class="btn-default cancel-edit" icon="times"}} {{/if}}
{{#link-to 'adminCustomize.colors' class="btn btn-default edit"}}{{i18n 'admin.customize.colors.edit'}}{{/link-to}}
{{/unless}} {{#if parentThemes}}
{{i18n "admin.customize.theme.component_of"}}
{{/if}}
{{i18n "admin.customize.theme.css_html"}}
{{#if model.hasEditedFields}}
{{i18n "admin.customize.theme.custom_sections"}}
{{else}}
{{i18n "admin.customize.theme.edit_css_html_help"}}
{{/if}} {{#d-button action=(action "editTheme") class="btn btn-default edit"}}{{i18n 'admin.customize.theme.edit_css_html'}}{{/d-button}}
{{i18n "admin.customize.theme.uploads"}}
{{#if model.uploads}} {{else}}
{{i18n "admin.customize.theme.no_uploads"}}
{{/if}} {{#d-button action=(action "addUploadModal") class="btn-default" icon="plus"}}{{i18n "admin.customize.theme.add"}}{{/d-button}}
{{#if hasSettings}}
{{i18n "admin.customize.theme.theme_settings"}}
{{#d-section class="form-horizontal theme settings"}} {{#each settings as |setting|}} {{theme-setting-editor setting=setting model=model class="theme-setting"}} {{/each}} {{/d-section}}
{{/if}} {{#if hasTranslations}}
{{i18n "admin.customize.theme.theme_translations"}}
{{#d-section class="form-horizontal theme settings translations"}} {{#each translations as |translation|}} {{theme-translation translation=translation model=model class="theme-translation"}} {{/each}} {{/d-section}}
{{/if}} {{#if availableChildThemes}}
{{i18n "admin.customize.theme.theme_components"}}
{{#if model.childThemes.length}} {{/if}} {{#if selectableChildThemes}}
{{combo-box forceEscape=true filterable=true content=selectableChildThemes value=selectedChildThemeId none="admin.customize.theme.select_component"}} {{#d-button action=(action "addChildTheme") icon="plus" disabled=addButtonDisabled class="btn-default add-component-button"}}{{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=(action "switchType") label="admin.customize.theme.convert" icon=convertIcon class="btn-default btn-normal" title=convertTooltip}} {{d-button action=(action "destroy") label="admin.customize.delete" icon="trash-alt" class="btn-danger"}}