diff --git a/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs b/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs index 4a8cd07..eea3829 100644 --- a/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs +++ b/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs @@ -4,8 +4,8 @@

{{i18n "explorer.admins_only"}}

{{else}}
- {{combo-box valueAttribute="id" value=selectedQueryId nameProperty="listName" content=content castInteger="true" nameChanges="true"}} - {{d-button action="showCreate" icon="plus" class="no-text"}} + {{combo-box valueAttribute="id" value=selectedQueryId nameProperty="listName" none="explorer.menu_none" content=content castInteger="true" nameChanges="true"}} + {{d-button action="showCreate" icon="plus" class="no-icon"}} {{d-button action="importQuery" label="explorer.import.label" icon="upload"}}
@@ -24,7 +24,7 @@ {{/if}}
- + {{#if selectedItem.fake}} {{i18n "explorer.no_queries"}} {{i18n "explorer.no_queries_hook"}} {{else}} diff --git a/assets/stylesheets/explorer.scss b/assets/stylesheets/explorer.scss index 56defba..2dd3667 100644 --- a/assets/stylesheets/explorer.scss +++ b/assets/stylesheets/explorer.scss @@ -200,6 +200,16 @@ margin: 10px 0; } +.query-list { + display: flex; + .combo-box, button { + margin-right: .5em; + } + li.none { + color: $primary-medium; + } +} + .explorer-pad-bottom { margin-bottom: 200px; } diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 8e2d007..7b7e1a5 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -58,3 +58,4 @@ en: reset_params: "Reset" no_queries: "There are no queries. Why not " no_queries_hook: "create one?" + menu_none: "Select a query"