浏览代码

HUE-6060 [metastore] Open table location link in file browser in responsive

Romain Rigaux 8 年之前
父节点
当前提交
b270ecc
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      apps/metastore/src/metastore/templates/metastore.mako

+ 8 - 1
apps/metastore/src/metastore/templates/metastore.mako

@@ -292,7 +292,14 @@ ${ components.menubar() }
           ${_('Stored in')} Kudu
         <!-- /ko -->
         <!-- ko if: details.properties.format != 'kudu' -->
-          <a data-bind="attr: {'href': hdfs_link, 'rel': path_location}" title="${_('Open data location')}">${_('Location')}</a>
+          <!-- ko if: IS_HUE_4 -->
+            <a data-bind="click: function () { huePubSub.publish('open.fb.folder', hdfs_link.replace(/\/filebrowser\/view=/g, '') ); }" href="javascript:void(0)" title="${_('Open data location')}">
+              ${_('Location')}
+            </a>
+          <!-- /ko -->
+          <!-- ko if: ! IS_HUE_4 -->
+            <a data-bind="attr: {'href': hdfs_link, 'rel': path_location}" title="${_('Open data location')}">${_('Location')}</a>
+          <!-- /ko -->
         <!-- /ko -->
       </div>
       <!-- ko with: $parent.tableStats -->