|
@@ -15,10 +15,12 @@
|
|
|
## limitations under the License.
|
|
## limitations under the License.
|
|
|
|
|
|
|
|
<%!
|
|
<%!
|
|
|
-from desktop.views import commonheader, commonfooter
|
|
|
|
|
from django.core.urlresolvers import reverse
|
|
from django.core.urlresolvers import reverse
|
|
|
from django.utils.encoding import smart_unicode
|
|
from django.utils.encoding import smart_unicode
|
|
|
from django.utils.translation import ugettext as _
|
|
from django.utils.translation import ugettext as _
|
|
|
|
|
+
|
|
|
|
|
+from desktop.views import commonheader, commonfooter
|
|
|
|
|
+from metadata.conf import OPTIMIZER
|
|
|
%>
|
|
%>
|
|
|
|
|
|
|
|
<%namespace name="layout" file="/about_layout.mako" />
|
|
<%namespace name="layout" file="/about_layout.mako" />
|
|
@@ -26,6 +28,7 @@ from django.utils.translation import ugettext as _
|
|
|
%if not is_embeddable:
|
|
%if not is_embeddable:
|
|
|
${ commonheader(_('Quick Start'), "quickstart", user, request, "70px") | n,unicode }
|
|
${ commonheader(_('Quick Start'), "quickstart", user, request, "70px") | n,unicode }
|
|
|
%endif
|
|
%endif
|
|
|
|
|
+
|
|
|
${ layout.menubar(section='quick_start') }
|
|
${ layout.menubar(section='quick_start') }
|
|
|
|
|
|
|
|
<div class="container-fluid">
|
|
<div class="container-fluid">
|
|
@@ -87,6 +90,14 @@ ${ layout.menubar(section='quick_start') }
|
|
|
</a>
|
|
</a>
|
|
|
</li>
|
|
</li>
|
|
|
% endif
|
|
% endif
|
|
|
|
|
+ % if OPTIMIZER.QUERY_HISTORY_UPLOAD_LIMIT.get() > 0:
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <a href="javascript:void(0)" class="installBtn" data-loading-text="${ _('Uploading...') }"
|
|
|
|
|
+ data-sample-url="${ url('metadata:upload_history') }" title="${ _('Send and analyze past %s executed queries to provide smarter SQL recommendations') % OPTIMIZER.QUERY_HISTORY_UPLOAD_LIMIT.get() }">
|
|
|
|
|
+ <i class="fa fa-upload"></i> ${ _('SQL Query history') }
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ % endif
|
|
|
% if 'search' in app_names:
|
|
% if 'search' in app_names:
|
|
|
<li>
|
|
<li>
|
|
|
<a href="javascript:void(0)" class="installBtn" data-loading-text="${ _('Installing...') }"
|
|
<a href="javascript:void(0)" class="installBtn" data-loading-text="${ _('Installing...') }"
|