|
@@ -192,7 +192,9 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
|
|
|
<!-- ko case: 'text' -->Text<!-- /ko -->
|
|
<!-- ko case: 'text' -->Text<!-- /ko -->
|
|
|
<!-- ko case: $default -->SQL<!-- /ko -->
|
|
<!-- ko case: $default -->SQL<!-- /ko -->
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
|
|
+ % if not IS_EMBEDDED.get():
|
|
|
<!-- ko component: { name: 'hue-favorite-app', params: { hue4: IS_HUE_4, app: 'editor', interpreter: editorType() }} --><!-- /ko -->
|
|
<!-- ko component: { name: 'hue-favorite-app', params: { hue4: IS_HUE_4, app: 'editor', interpreter: editorType() }} --><!-- /ko -->
|
|
|
|
|
+ % endif
|
|
|
</a>
|
|
</a>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
<!-- ko ifnot: editorMode -->
|
|
<!-- ko ifnot: editorMode -->
|
|
@@ -249,7 +251,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
|
|
|
|
|
|
|
|
<script type="text/html" id="notebook-menu-buttons-${ suffix }">
|
|
<script type="text/html" id="notebook-menu-buttons-${ suffix }">
|
|
|
<div class="pull-right margin-right-10">
|
|
<div class="pull-right margin-right-10">
|
|
|
- % if ENABLE_PRESENTATION.get():
|
|
|
|
|
|
|
+ % if ENABLE_PRESENTATION.get() and not IS_EMBEDDED.get():
|
|
|
<!-- ko with: selectedNotebook() -->
|
|
<!-- ko with: selectedNotebook() -->
|
|
|
<div class="btn-group">
|
|
<div class="btn-group">
|
|
|
<a class="btn" data-bind="click: function() { isPresentationMode(!isPresentationMode()); },
|
|
<a class="btn" data-bind="click: function() { isPresentationMode(!isPresentationMode()); },
|
|
@@ -590,11 +592,13 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
|
|
|
% if conf.USE_DEFAULT_CONFIGURATION.get():
|
|
% if conf.USE_DEFAULT_CONFIGURATION.get():
|
|
|
<a class="inactive-action pointer margin-left-10" title="${ _('Save session settings as default') }" rel="tooltip" data-bind="click: function() { $parent.saveDefaultUserProperties($data) }"><i class="fa fa-save"></i> ${ _('Set as default settings') }</a>
|
|
<a class="inactive-action pointer margin-left-10" title="${ _('Save session settings as default') }" rel="tooltip" data-bind="click: function() { $parent.saveDefaultUserProperties($data) }"><i class="fa fa-save"></i> ${ _('Set as default settings') }</a>
|
|
|
% endif
|
|
% endif
|
|
|
|
|
+ % if not IS_EMBEDDED.get():
|
|
|
<!-- ko if: type() == 'impala' && typeof http_addr != 'undefined' -->
|
|
<!-- ko if: type() == 'impala' && typeof http_addr != 'undefined' -->
|
|
|
<a class="margin-left-10" data-bind="attr: {'href': http_addr()}" target="_blank">
|
|
<a class="margin-left-10" data-bind="attr: {'href': http_addr()}" target="_blank">
|
|
|
<span data-bind="text: http_addr().replace(/^(https?):\/\//, '')"></span> <i class="fa fa-external-link"></i>
|
|
<span data-bind="text: http_addr().replace(/^(https?):\/\//, '')"></span> <i class="fa fa-external-link"></i>
|
|
|
</a>
|
|
</a>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
|
|
+ % endif
|
|
|
</div>
|
|
</div>
|
|
|
% if conf.USE_DEFAULT_CONFIGURATION.get():
|
|
% if conf.USE_DEFAULT_CONFIGURATION.get():
|
|
|
<div style="width:100%;">
|
|
<div style="width:100%;">
|
|
@@ -631,6 +635,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
|
|
|
<div class="snippet-log-container margin-bottom-10" data-bind="visible: showLogs() && status() != 'ready' && status() != 'loading'" style="display: none;">
|
|
<div class="snippet-log-container margin-bottom-10" data-bind="visible: showLogs() && status() != 'ready' && status() != 'loading'" style="display: none;">
|
|
|
<div data-bind="delayedOverflow: 'slow', css: resultsKlass" style="margin-top: 5px; position: relative;">
|
|
<div data-bind="delayedOverflow: 'slow', css: resultsKlass" style="margin-top: 5px; position: relative;">
|
|
|
<a href="javascript: void(0)" class="inactive-action close-logs-overlay" data-bind="click: function(){ showLogs(false) }">×</a>
|
|
<a href="javascript: void(0)" class="inactive-action close-logs-overlay" data-bind="click: function(){ showLogs(false) }">×</a>
|
|
|
|
|
+ %if not IS_EMBEDDED.get():
|
|
|
<ul data-bind="visible: jobs().length > 0, foreach: jobs" class="unstyled jobs-overlay">
|
|
<ul data-bind="visible: jobs().length > 0, foreach: jobs" class="unstyled jobs-overlay">
|
|
|
<li data-bind="attr: {'id': $data.name.substr(4)}">
|
|
<li data-bind="attr: {'id': $data.name.substr(4)}">
|
|
|
%if is_embeddable:
|
|
%if is_embeddable:
|
|
@@ -646,6 +651,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
|
|
+ %endif
|
|
|
<span data-bind="visible: !$root.isPresentationMode() || !$root.isHidingCode()">
|
|
<span data-bind="visible: !$root.isPresentationMode() || !$root.isHidingCode()">
|
|
|
<pre data-bind="visible: result.logs() && result.logs().length == 0" class="logs logs-bigger">${ _('No logs available at this moment.') }</pre>
|
|
<pre data-bind="visible: result.logs() && result.logs().length == 0" class="logs logs-bigger">${ _('No logs available at this moment.') }</pre>
|
|
|
<pre data-bind="visible: result.logs() && result.logs().length > 0, text: result.logs, logScroller: result.logs, logScrollerVisibilityEvent: showLogs" class="logs logs-bigger logs-populated"></pre>
|
|
<pre data-bind="visible: result.logs() && result.logs().length > 0, text: result.logs, logScroller: result.logs, logScrollerVisibilityEvent: showLogs" class="logs logs-bigger logs-populated"></pre>
|
|
@@ -684,7 +690,9 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
|
|
|
<a class="inactive-action" href="#queryHistory" data-toggle="tab">${_('Query History')}
|
|
<a class="inactive-action" href="#queryHistory" data-toggle="tab">${_('Query History')}
|
|
|
<div class="inline-block inactive-action margin-left-10 pointer" title="${_('Search the query history')}" data-bind="click: function(data, e){ $parent.historyFilterVisible(!$parent.historyFilterVisible()); if ($parent.historyFilterVisible()) { window.setTimeout(function(){ $(e.target).parent().siblings('input').focus(); }, 0); } else { $parent.historyFilter('') }}"><i class="snippet-icon fa fa-search"></i></div>
|
|
<div class="inline-block inactive-action margin-left-10 pointer" title="${_('Search the query history')}" data-bind="click: function(data, e){ $parent.historyFilterVisible(!$parent.historyFilterVisible()); if ($parent.historyFilterVisible()) { window.setTimeout(function(){ $(e.target).parent().siblings('input').focus(); }, 0); } else { $parent.historyFilter('') }}"><i class="snippet-icon fa fa-search"></i></div>
|
|
|
<input class="input-small inline-tab-filter" type="text" data-bind="visible: $parent.historyFilterVisible, clearable: $parent.historyFilter, valueUpdate:'afterkeydown'" placeholder="${ _('Search...') }">
|
|
<input class="input-small inline-tab-filter" type="text" data-bind="visible: $parent.historyFilterVisible, clearable: $parent.historyFilter, valueUpdate:'afterkeydown'" placeholder="${ _('Search...') }">
|
|
|
|
|
+ % if not IS_EMBEDDED.get():
|
|
|
<div class="inline-block inactive-action pointer" title="${_('Clear the query history')}" data-target="#clearHistoryModal${ suffix }" data-toggle="modal" rel="tooltip" data-bind="visible: $parent.history().length > 0"><i class="snippet-icon fa fa-calendar-times-o"></i></div>
|
|
<div class="inline-block inactive-action pointer" title="${_('Clear the query history')}" data-target="#clearHistoryModal${ suffix }" data-toggle="modal" rel="tooltip" data-bind="visible: $parent.history().length > 0"><i class="snippet-icon fa fa-calendar-times-o"></i></div>
|
|
|
|
|
+ %endif
|
|
|
</a>
|
|
</a>
|
|
|
</li>
|
|
</li>
|
|
|
% if not IS_EMBEDDED.get():
|
|
% if not IS_EMBEDDED.get():
|
|
@@ -945,7 +953,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/html" id="snippet-header-statement-type${ suffix }">
|
|
<script type="text/html" id="snippet-header-statement-type${ suffix }">
|
|
|
- % if ENABLE_EXTERNAL_STATEMENT.get():
|
|
|
|
|
|
|
+ % if ENABLE_EXTERNAL_STATEMENT.get() and not IS_EMBEDDED.get():
|
|
|
<!-- ko if: isSqlDialect() -->
|
|
<!-- ko if: isSqlDialect() -->
|
|
|
<div class="margin-left-10 statement-type-selector" data-bind="component: { name: 'hue-drop-down', params: { value: statementType, entries: statementTypes, linkTitle: '${ _ko('Statement type') }' } }" style="display: inline-block"></div>
|
|
<div class="margin-left-10 statement-type-selector" data-bind="component: { name: 'hue-drop-down', params: { value: statementType, entries: statementTypes, linkTitle: '${ _ko('Statement type') }' } }" style="display: inline-block"></div>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
@@ -1921,7 +1929,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
|
|
|
</a>
|
|
</a>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- % if conf.ENABLE_DOWNLOAD.get():
|
|
|
|
|
|
|
+ % if conf.ENABLE_DOWNLOAD.get() and not IS_EMBEDDED.get():
|
|
|
<div data-bind="component: { name: 'downloadSnippetResults', params: { gridSideBtn: false, snippet: $data, notebook: $parent } }" style="display:inline-block;"></div>
|
|
<div data-bind="component: { name: 'downloadSnippetResults', params: { gridSideBtn: false, snippet: $data, notebook: $parent } }" style="display:inline-block;"></div>
|
|
|
% endif
|
|
% endif
|
|
|
</div>
|
|
</div>
|