{{#if this.editingName}} {{else}} {{this.model.name}} {{/if}}
{{#each this.model.errors as |error|}}
{{error}}
{{/each}} {{#if this.finishInstall}}
{{#if this.sourceIsHttp}} {{i18n "admin.customize.theme.source_url" }}{{d-icon "link"}} {{else}}
{{this.model.remote_theme.remote_url}} {{#if this.model.remote_theme.branch}} ({{this.model.remote_theme.branch}}) {{/if}}
{{/if}} {{#if this.showRemoteError}}
{{d-icon "exclamation-triangle"}} {{i18n "admin.customize.theme.repo_unreachable"}}
{{this.model.remoteError}}
{{/if}} {{i18n "admin.customize.theme.last_attempt"}} {{format-date this.model.remote_theme.updated_at leaveAgo="true"}}
{{else}} {{#unless this.model.supported}}
{{i18n "admin.customize.theme.required_version.error"}} {{#if this.model.remote_theme.minimum_discourse_version}} {{i18n "admin.customize.theme.required_version.minimum" version=this.model.remote_theme.minimum_discourse_version }} {{/if}} {{#if this.model.remote_theme.maximum_discourse_version}} {{i18n "admin.customize.theme.required_version.maximum" version=this.model.remote_theme.maximum_discourse_version }} {{/if}}
{{/unless}} {{#unless this.model.enabled}}
{{#if this.model.disabled_by}} {{i18n "admin.customize.theme.disabled_by"}} {{avatar this.model.disabled_by imageSize="tiny"}} {{this.model.disabled_by.username}} {{format-date this.model.disabled_at leaveAgo="true"}} {{else}} {{i18n "admin.customize.theme.disabled"}} {{/if}}
{{/unless}}
{{#if this.model.remote_theme}} {{#if this.model.remote_theme.remote_url}} {{#if this.sourceIsHttp}} {{i18n "admin.customize.theme.source_url" }}{{d-icon "link"}} {{else}}
{{this.model.remote_theme.remote_url}} {{#if this.model.remote_theme.branch}} ({{this.model.remote_theme.branch}}) {{/if}}
{{/if}} {{/if}} {{#if this.model.remote_theme.about_url}} {{i18n "admin.customize.theme.about_theme"}}{{d-icon "link"}} {{/if}} {{#if this.model.remote_theme.license_url}} {{i18n "admin.customize.theme.license"}}{{d-icon "link"}} {{/if}} {{#if this.model.description}} {{this.model.description}} {{/if}} {{#if this.model.remote_theme.authors}}{{i18n "admin.customize.theme.authors"}} {{this.model.remote_theme.authors}}{{/if}} {{#if this.model.remote_theme.theme_version}}{{i18n "admin.customize.theme.version"}} {{this.model.remote_theme.theme_version}}{{/if}}
{{#if this.model.remote_theme.is_git}}
{{html-safe (i18n "admin.customize.theme.remote_theme_edits" repoURL=this.remoteThemeLink ) }}
{{#if this.showRemoteError}}
{{d-icon "exclamation-triangle"}} {{i18n "admin.customize.theme.repo_unreachable"}}
{{this.model.remoteError}}
{{/if}} {{#if this.model.remote_theme.commits_behind}} {{else}} {{/if}} {{#if this.updatingRemote}} {{i18n "admin.customize.theme.updating"}} {{else}} {{#if this.model.remote_theme.commits_behind}} {{#if this.hasOverwrittenHistory}} {{i18n "admin.customize.theme.has_overwritten_history"}} {{else}} {{i18n "admin.customize.theme.commits_behind" count=this.model.remote_theme.commits_behind }} {{/if}} {{#if this.model.remote_theme.github_diff_link}} {{i18n "admin.customize.theme.compare_commits"}} {{/if}} {{else}} {{#unless this.showRemoteError}} {{i18n "admin.customize.theme.up_to_date"}} {{format-date this.model.remote_theme.updated_at leaveAgo="true" }} {{/unless}} {{/if}} {{/if}} {{else}} {{d-icon "info-circle"}} {{i18n "admin.customize.theme.imported_from_archive"}} {{/if}}
{{else}} {{i18n "admin.customize.theme.creator"}} {{format-username this.model.user.username}} {{/if}}
{{#if this.showCheckboxes}}
{{#unless this.model.component}} {{/unless}} {{#if this.model.remote_theme}} {{/if}}
{{/if}} {{#unless this.model.component}}
{{i18n "admin.customize.theme.color_scheme"}}
{{i18n "admin.customize.theme.color_scheme_select" }}
{{#if this.colorSchemeChanged}} {{/if}}
{{/unless}} {{#if this.model.component}}
{{else}}
{{/if}} {{#unless this.model.remote_theme.is_git}}
{{i18n "admin.customize.theme.css_html"}}
{{#if this.model.hasEditedFields}}
{{i18n "admin.customize.theme.custom_sections" }}
{{else}}
{{i18n "admin.customize.theme.edit_css_html_help"}}
{{/if}}
{{i18n "admin.customize.theme.uploads"}}
{{#if this.model.uploads}} {{else}}
{{i18n "admin.customize.theme.no_uploads" }}
{{/if}}
{{/unless}} {{#if this.extraFiles.length}}
{{i18n "admin.customize.theme.extra_files" }}
{{#if this.model.remote_theme}} {{i18n "admin.customize.theme.extra_files_remote"}} {{else}} {{i18n "admin.customize.theme.extra_files_upload"}} {{/if}}
    {{#each this.extraFiles as |extraFile|}}
  • {{extraFile.name}}
  • {{/each}}
{{/if}} {{#if this.hasSettings}}
{{i18n "admin.customize.theme.theme_settings" }}

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

{{#each this.settings as |setting|}} {{/each}}
{{/if}} {{#if this.hasTranslations}}
{{i18n "admin.customize.theme.theme_translations" }}
{{#each this.translations as |translation|}} {{/each}}
{{/if}}
{{d-icon "desktop"}}{{i18n "admin.customize.theme.preview"}} {{d-icon "download"}} {{i18n "admin.export_json.button_text"}} {{#if this.showConvert}} {{/if}} {{#if this.model.component}} {{#if this.model.enabled}} {{else}} {{/if}} {{/if}} {{#if this.hasSettings}} {{/if}}
{{/if}}