mirror of
https://github.com/discourse/discourse.git
synced 2026-08-18 00:44:59 -05:00
UX: display info about extra files and uploader (#9595)
Co-authored-by: David Taylor <david@taylorhq.com>
This commit is contained in:
co-authored by
David Taylor
parent
0d84f3afd4
commit
45f704906d
@@ -31,6 +31,7 @@ export default Controller.extend({
|
|||||||
availableComponentsNames: mapBy("availableChildThemes", "name"),
|
availableComponentsNames: mapBy("availableChildThemes", "name"),
|
||||||
availableActiveComponentsNames: mapBy("availableActiveChildThemes", "name"),
|
availableActiveComponentsNames: mapBy("availableActiveChildThemes", "name"),
|
||||||
childThemesNames: mapBy("model.childThemes", "name"),
|
childThemesNames: mapBy("model.childThemes", "name"),
|
||||||
|
extraFiles: filterBy("model.theme_fields", "target", "extra_js"),
|
||||||
|
|
||||||
@discourseComputed("model.editedFields")
|
@discourseComputed("model.editedFields")
|
||||||
editedFieldsFormatted() {
|
editedFieldsFormatted() {
|
||||||
|
|||||||
@@ -126,6 +126,15 @@
|
|||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
{{else}}
|
||||||
|
<div class="control-unit">
|
||||||
|
<span class="heading">{{i18n "admin.customize.theme.creator"}}</span>
|
||||||
|
<span>
|
||||||
|
{{#user-link user=model.user}}
|
||||||
|
{{format-username model.user.username}}
|
||||||
|
{{/user-link}}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#unless model.component}}
|
{{#unless model.component}}
|
||||||
@@ -219,6 +228,24 @@
|
|||||||
{{#d-button action=(action "addUploadModal") class="btn-default" icon="plus"}}{{i18n "admin.customize.theme.add"}}{{/d-button}}
|
{{#d-button action=(action "addUploadModal") class="btn-default" icon="plus"}}{{i18n "admin.customize.theme.add"}}{{/d-button}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{#if extraFiles.length}}
|
||||||
|
<div class="control-unit">
|
||||||
|
<div class="mini-title">{{i18n "admin.customize.theme.extra_files"}}</div>
|
||||||
|
<div class="description">
|
||||||
|
{{#if model.remote_theme}}
|
||||||
|
{{i18n "admin.customize.theme.extra_files_remote"}}
|
||||||
|
{{else}}
|
||||||
|
{{i18n "admin.customize.theme.extra_files_upload"}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
<ul>
|
||||||
|
{{#each extraFiles as |extraFile|}}
|
||||||
|
<li>{{extraFile.name}}</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#if hasSettings}}
|
{{#if hasSettings}}
|
||||||
<div class="control-unit">
|
<div class="control-unit">
|
||||||
<div class="mini-title">{{i18n "admin.customize.theme.theme_settings"}}</div>
|
<div class="mini-title">{{i18n "admin.customize.theme.theme_settings"}}</div>
|
||||||
|
|||||||
@@ -3759,6 +3759,9 @@ en:
|
|||||||
settings: "Settings"
|
settings: "Settings"
|
||||||
translations: "Translations"
|
translations: "Translations"
|
||||||
extra_scss: "Extra SCSS"
|
extra_scss: "Extra SCSS"
|
||||||
|
extra_files: "Extra files"
|
||||||
|
extra_files_upload: "Export theme to view these files."
|
||||||
|
extra_files_remote: "Export theme or check the git repository to view these files."
|
||||||
preview: "Preview"
|
preview: "Preview"
|
||||||
show_advanced: "Show advanced fields"
|
show_advanced: "Show advanced fields"
|
||||||
hide_advanced: "Hide advanced fields"
|
hide_advanced: "Hide advanced fields"
|
||||||
@@ -3822,6 +3825,7 @@ en:
|
|||||||
license: "License"
|
license: "License"
|
||||||
version: "Version:"
|
version: "Version:"
|
||||||
authors: "Authored by:"
|
authors: "Authored by:"
|
||||||
|
creator: "Created by:"
|
||||||
source_url: "Source"
|
source_url: "Source"
|
||||||
enable: "Enable"
|
enable: "Enable"
|
||||||
disable: "Disable"
|
disable: "Disable"
|
||||||
|
|||||||
Reference in New Issue
Block a user