Browse Source

HUE-8440 [jb] Link for Spark logs in Properties tab of Job Browser is incorrect

Roohi 7 years ago
parent
commit
ccf5dbe0a6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      apps/jobbrowser/src/jobbrowser/templates/job_browser.mako

+ 4 - 1
apps/jobbrowser/src/jobbrowser/templates/job_browser.mako

@@ -1928,10 +1928,13 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
 
 <script type="text/html" id="link-or-text${ SUFFIX }">
   <!-- ko if: typeof $data.value === 'string' -->
+    <!-- ko if: $data.name.indexOf('logs') > -1 -->
+      <a href="javascript:void(0)" data-bind="text: $data.value, attr: { href: $data.value }" target="_blank"></a>
+    <!-- /ko -->
     <!-- ko if: $data.name.indexOf('dir') > -1 || $data.name.indexOf('path') > -1 || $data.name.indexOf('output') > -1 || $data.name.indexOf('input') > -1 || $data.value.startsWith('/') ||  $data.value.startsWith('hdfs://') -->
       <a href="javascript:void(0)" data-bind="hueLink: '/filebrowser/view=' + $root.getHDFSPath($data.value) , text: $data.value"></a>
     <!-- /ko -->
-    <!-- ko ifnot: $data.name.indexOf('dir') > -1 || $data.name.indexOf('path') > -1 || $data.name.indexOf('output') > -1 || $data.name.indexOf('input') > -1 || $data.value.startsWith('/') ||  $data.value.startsWith('hdfs://') -->
+    <!-- ko ifnot: $data.name.indexOf('logs') > -1 || $data.name.indexOf('dir') > -1 || $data.name.indexOf('path') > -1 || $data.name.indexOf('output') > -1 || $data.name.indexOf('input') > -1 || $data.value.startsWith('/') ||  $data.value.startsWith('hdfs://') -->
       <span data-bind="text: $data.value"></span>
     <!-- /ko -->
   <!-- /ko -->