|
@@ -21,7 +21,11 @@ from django.utils.translation import ugettext as _
|
|
|
from desktop.views import _ko
|
|
from desktop.views import _ko
|
|
|
%>
|
|
%>
|
|
|
|
|
|
|
|
|
|
+<%namespace name="hueIcons" file="/hue_icons.mako" />
|
|
|
|
|
+
|
|
|
<%def name="fileBrowser()">
|
|
<%def name="fileBrowser()">
|
|
|
|
|
+ ${ hueIcons.symbols() }
|
|
|
|
|
+
|
|
|
<style>
|
|
<style>
|
|
|
.fb-container {
|
|
.fb-container {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -140,12 +144,17 @@ from desktop.views import _ko
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.fb-list i {
|
|
.fb-list i {
|
|
|
- color: #666;
|
|
|
|
|
|
|
+ color: #338BB8;
|
|
|
font-size: 20px;
|
|
font-size: 20px;
|
|
|
- margin-right: 8px;
|
|
|
|
|
font-weight: lighter;
|
|
font-weight: lighter;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ .fb-list .hi {
|
|
|
|
|
+ color: #338BB8;
|
|
|
|
|
+ font-size: 20px;
|
|
|
|
|
+ width: 1.28571429em
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.fb-action {
|
|
.fb-action {
|
|
|
font-size: 25px;
|
|
font-size: 25px;
|
|
|
margin-left: 5px;
|
|
margin-left: 5px;
|
|
@@ -172,6 +181,12 @@ from desktop.views import _ko
|
|
|
vertical-align: middle;
|
|
vertical-align: middle;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ .fb-primary-col .hi {
|
|
|
|
|
+ vertical-align: middle;
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ margin-bottom: 0.2em;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.fb-attr-group {
|
|
.fb-attr-group {
|
|
|
flex: 1;
|
|
flex: 1;
|
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
@@ -541,7 +556,18 @@ from desktop.views import _ko
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
</ul>
|
|
</ul>
|
|
|
<div class="fb-primary-col">
|
|
<div class="fb-primary-col">
|
|
|
- <i class="fa fa-fw" data-bind="css: { 'fa-folder-o' : isDirectory, 'fa-file-o': ! isDirectory() }"></i>
|
|
|
|
|
|
|
+ <!-- ko if: isDirectory() -->
|
|
|
|
|
+ <i class="fa fa-fw fa-folder-o"></i>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+ <!-- ko if: ! isDirectory() && definition().type === 'query-hive' -->
|
|
|
|
|
+ <svg class="hi"><use xlink:href="#hi-file-hive"></use></svg>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+ <!-- ko if: ! isDirectory() && definition().type === 'query-impala' -->
|
|
|
|
|
+ <svg class="hi"><use xlink:href="#hi-file-impala"></use></svg>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+ <!-- ko if: ! isDirectory() && definition().type !== 'query-impala' && definition().type !== 'query-hive' -->
|
|
|
|
|
+ <i class="fa fa-fw fa-file-o"></i>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
<a href="javascript: void(0);" data-bind="text: definition().name, click: open, attr: { 'title': definition().name }"></a>
|
|
<a href="javascript: void(0);" data-bind="text: definition().name, click: open, attr: { 'title': definition().name }"></a>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="fb-attr-group">
|
|
<div class="fb-attr-group">
|