Browse Source

[editor] List Hive session in the sessions list

Romain Rigaux 10 years ago
parent
commit
cf32a7dc5a

+ 2 - 2
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -1014,8 +1014,8 @@ ${ login_modal(request).content | n,unicode }
             <p>${ _('There are currently no active sessions.') }</p>
             <p>${ _('There are currently no active sessions.') }</p>
             <!-- /ko -->
             <!-- /ko -->
             <!-- ko foreach: sessions -->
             <!-- ko foreach: sessions -->
-              <!-- ko if: ['pyspark', 'spark'].indexOf(type()) != -1 && typeof properties != 'undefined' -->
               <h4 data-bind="text: $root.getSnippetName(type())" style="clear:left;"></h4>
               <h4 data-bind="text: $root.getSnippetName(type())" style="clear:left;"></h4>
+              <!-- ko if: ['pyspark', 'spark'].indexOf(type()) != -1 && typeof properties != 'undefined' -->
               <div style="display:block; width:100%;">
               <div style="display:block; width:100%;">
                 <!-- ko foreach: properties -->
                 <!-- ko foreach: properties -->
                   <!-- ko template: {
                   <!-- ko template: {
@@ -1027,8 +1027,8 @@ ${ login_modal(request).content | n,unicode }
                       remove: function () { $parent.properties.remove($data) }
                       remove: function () { $parent.properties.remove($data) }
                     }
                     }
                   } --><!-- /ko -->
                   } --><!-- /ko -->
-                <!-- /ko -->
               </div>
               </div>
+              <!-- /ko -->
               <div style="clear:both; padding-left: 120px;">
               <div style="clear:both; padding-left: 120px;">
                 <!-- ko if: availableNewProperties().length -->
                 <!-- ko if: availableNewProperties().length -->
                 <select data-bind="options: availableNewProperties,
                 <select data-bind="options: availableNewProperties,