Selaa lähdekoodia

HUE-2760 [notebook] Show job links on the logs panel

Enrico Berti 10 vuotta sitten
vanhempi
commit
df8d45a

+ 0 - 16
apps/beeswax/src/beeswax/templates/execute.mako

@@ -1008,22 +1008,6 @@ ${ koComponents.assistPanel() }
     margin: 0;
   }
 
-  .jobs-overlay {
-    background-color: #FFF;
-    opacity: 0.8;
-    position: absolute;
-    top: 10px;
-    right: 15px;
-  }
-
-  .jobs-overlay li {
-    padding: 5px;
-  }
-
-  .jobs-overlay:hover {
-    opacity: 1;
-  }
-
   #saveResultsModal .overlay {
     background: black; opacity: 0.5;
     position: absolute;

+ 16 - 0
desktop/core/src/desktop/static/desktop/css/hue3.css

@@ -2153,3 +2153,19 @@ pre {
 div.navigator .pull-right .nav {
   margin-bottom: 0;
 }
+
+.jobs-overlay {
+  background-color: #FFF;
+  opacity: 0.8;
+  position: absolute;
+  top: 10px;
+  right: 15px;
+}
+
+.jobs-overlay li {
+  padding: 5px;
+}
+
+.jobs-overlay:hover {
+  opacity: 1;
+}

+ 4 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -380,7 +380,10 @@ from desktop.views import _ko
         <div class="clearfix"></div>
       </div>
 
-      <div data-bind="delayedOverflow, visible: showLogs, css: resultsKlass" style="margin-top: 5px">
+      <div data-bind="delayedOverflow, visible: showLogs, css: resultsKlass" style="margin-top: 5px; position: relative">
+        <ul data-bind="visible: jobs().length > 0, foreach: jobs" class="unstyled jobs-overlay">
+          <li><a data-bind="text: $.trim($data.name), attr: { href: $data.url }" target="_blank"></a></li>
+        </ul>
         <pre data-bind="visible: result.logs().length == 0" class="logs logs-bigger">${ _('No logs available at this moment.') }</pre>
         <pre data-bind="visible: result.logs().length > 0, text: result.logs, logScroller: result.logs" class="logs logs-bigger"></pre>
       </div>