diff --git a/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs b/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs
index b8a06e3..e200f29 100644
--- a/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs
+++ b/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs
@@ -67,14 +67,15 @@
{{#if runDisabled}}
{{#unless editing}}
-
- {{d-button class="ok" action=(action "save") icon="check"}}
- {{d-button class="cancel" action=(action "discard") icon="times"}}
-
- {{/unless}}
+
+ {{d-button class="ok" action=(action "save") icon="check"}}
+ {{d-button class="cancel" action=(action "discard") icon="times"}}
+
+ {{/unless}}
{{/if}}
+
{{! the SQL editor will show the first time you }}
@@ -93,9 +94,11 @@
+
{{d-icon "discourse-expand"}}
+
{{else}}
@@ -119,6 +122,7 @@
{{d-button action=(action "showHelpModal") label="explorer.help.label" icon="question-circle"}}
{{/if}}
+
{{#if selectedItem.destroyed}}
{{d-button action=(action "recover") class="" icon="undo" label="explorer.recover"}}
@@ -131,6 +135,7 @@
{{/unless}}
{{/if}}
+
{{/if}}
@@ -143,6 +148,7 @@
{{/each}}
{{/if}}
+
{{#if runDisabled}}
{{#if saveDisabled}}
{{d-button label="explorer.run" disabled="true" class="btn-primary"}}
@@ -152,12 +158,15 @@
{{else}}
{{d-button action=(action "run") icon="play" label="explorer.run" disabled=runDisabled class="btn-primary" type="submit"}}
{{/if}}
+
{{/unless}}
+
{{conditional-loading-spinner condition=loading}}
+
{{#unless selectedItem.fake}}
{{#if results}}
@@ -172,47 +181,46 @@
{{/if}}
{{/unless}}
- {{#if showRecentQueries}}
-