|
|
@@ -32,6 +32,10 @@ from metastore.conf import ENABLE_NEW_CREATE_TABLE
|
|
|
|
|
|
<%
|
|
|
MAIN_SCROLLABLE = is_embeddable and ".page-content" or ".content-panel"
|
|
|
+if conf.CUSTOM.BANNER_TOP_HTML.get():
|
|
|
+ TOP_SNAP = is_embeddable and "82px" or "108px"
|
|
|
+else:
|
|
|
+ TOP_SNAP = is_embeddable and "52px" or "78px"
|
|
|
%>
|
|
|
|
|
|
<link rel="stylesheet" href="${ static('desktop/ext/css/bootstrap-editable.css') }">
|
|
|
@@ -338,7 +342,7 @@ ${ components.menubar(is_embeddable) }
|
|
|
</script>
|
|
|
|
|
|
<script type="text/html" id="metastore-databases">
|
|
|
- <div class="actionbar-actions" data-bind="dockable: { scrollable: '${ MAIN_SCROLLABLE }', nicescroll: true, jumpCorrection: 5 }">
|
|
|
+ <div class="actionbar-actions" data-bind="dockable: { scrollable: '${ MAIN_SCROLLABLE }', nicescroll: true, jumpCorrection: 5, topSnap: '${ TOP_SNAP }' }">
|
|
|
<input class="input-xlarge search-query margin-left-10" type="text" placeholder="${ _('Search for a database...') }" data-bind="clearable: databaseQuery, value: databaseQuery, valueUpdate: 'afterkeydown'"/>
|
|
|
% if has_write_access:
|
|
|
<button class="btn toolbarBtn margin-left-20" title="${_('Drop the selected databases')}" data-bind="click: function () { $('#dropDatabase').modal('show'); }, disable: selectedDatabases().length === 0"><i class="fa fa-times"></i> ${_('Drop')}</button>
|
|
|
@@ -450,7 +454,7 @@ ${ components.menubar(is_embeddable) }
|
|
|
<div class="row-fluid">
|
|
|
<div class="span12 tile">
|
|
|
<h4>${ _('Tables') }</h4>
|
|
|
- <div class="actionbar-actions" data-bind="visible: tables().length > 0, dockable: { scrollable: '${ MAIN_SCROLLABLE }', nicescroll: true, jumpCorrection: 5 }">
|
|
|
+ <div class="actionbar-actions" data-bind="visible: tables().length > 0, dockable: { scrollable: '${ MAIN_SCROLLABLE }', nicescroll: true, jumpCorrection: 5, topSnap: '${ TOP_SNAP }' }">
|
|
|
<input class="input-xlarge search-query margin-left-10" type="text" placeholder="${ _('Search for a table...') }" data-bind="clearable: tableQuery, value: tableQuery, valueUpdate: 'afterkeydown'"/>
|
|
|
<button class="btn toolbarBtn margin-left-20" title="${_('Browse the selected table')}" data-bind="click: function () { setTable(selectedTables()[0]); selectedTables([]); }, disable: selectedTables().length !== 1"><i class="fa fa-eye"></i> ${_('View')}</button>
|
|
|
<button class="btn toolbarBtn" title="${_('Query the selected table')}" data-bind="click: function () { IS_HUE_4 ? queryAndWatch('/notebook/browse/' + name + '/' + selectedTables()[0].name + '/', $root.sourceType()) : location.href = '/notebook/browse/' + name + '/' + selectedTables()[0].name; }, disable: selectedTables().length !== 1">
|