소스 검색

[oozie] Change color of ignored status to gray

This also excludes the ignored status from the error filter
Johan Ahlen 10 년 전
부모
커밋
f7a3921

+ 4 - 0
apps/oozie/src/oozie/static/oozie/css/coordinator.css

@@ -80,6 +80,10 @@ div.spinedit .fa-chevron-down {
   top: 5px!important;;
 }
 
+.label-ignored {
+  background-color: #ccc;
+}
+
 label.spinedit {
   display: inline;
 }

+ 3 - 0
apps/oozie/src/oozie/static/oozie/js/dashboard-utils.js

@@ -29,6 +29,9 @@ function getStatusClass(status, prefix) {
     'PAUSEDWITHERROR'].indexOf(status) > -1) {
     klass = prefix + "warning";
   }
+  else if (status == "IGNORED") {
+    klass = prefix + "ignored";
+  }
   else {
     klass = prefix + "important";
     if (prefix == "bar-") {

+ 2 - 2
apps/oozie/src/oozie/templates/dashboard/list_oozie_coordinator.mako

@@ -219,7 +219,7 @@ ${ layout.menubar(section='coordinators', dashboard=True) }
                 </tbody>
                 <tfoot>
                   <tr data-bind="visible: isLoading()">
-                    <td colspan="2" class="left">
+                    <td colspan="3" class="left">
                       <img src="${ static('desktop/art/spinner.gif') }" />
                     </td>
                   </tr>
@@ -889,7 +889,7 @@ ${ layout.menubar(section='coordinators', dashboard=True) }
         } else if (val == 'RUNNING') {
           btnStatuses = btnStatuses.concat(['RUNNING', 'READY', 'SUBMITTED', 'SUSPENDED', 'WAITING']);
         } else if (val == 'ERROR') {
-          btnStatuses = btnStatuses.concat(['KILLED', 'FAILED', 'TIMEDOUT', 'IGNORED', 'SKIPPED']);
+          btnStatuses = btnStatuses.concat(['KILLED', 'FAILED', 'TIMEDOUT', 'SKIPPED']);
         }
       });