##// END OF EJS Templates
Fixed cluster list.
Jonathan Frederic -
Show More
@@ -98,16 +98,16 b' var IPython = (function (IPython) {'
98
98
99 ClusterItem.prototype.state_stopped = function () {
99 ClusterItem.prototype.state_stopped = function () {
100 var that = this;
100 var that = this;
101 var profile_col = $('<div/>').addClass('profile_col span4').text(this.data.profile);
101 var profile_col = $('<div/>').addClass('profile_col col-md-4').text(this.data.profile);
102 var status_col = $('<div/>').addClass('status_col span3').text('stopped');
102 var status_col = $('<div/>').addClass('status_col col-md-3').text('stopped');
103 var engines_col = $('<div/>').addClass('engine_col span3');
103 var engines_col = $('<div/>').addClass('engine_col col-md-3');
104 var input = $('<input/>').attr('type','number')
104 var input = $('<input/>').attr('type','number')
105 .attr('min',1)
105 .attr('min',1)
106 .attr('size',3)
106 .attr('size',3)
107 .addClass('engine_num_input');
107 .addClass('engine_num_input');
108 engines_col.append(input);
108 engines_col.append(input);
109 var start_button = $('<button/>').addClass("btn btn-default btn-xs").text("Start");
109 var start_button = $('<button/>').addClass("btn btn-default btn-xs").text("Start");
110 var action_col = $('<div/>').addClass('action_col span2').append(
110 var action_col = $('<div/>').addClass('action_col col-md-2').append(
111 $("<span/>").addClass("item_buttons btn-group").append(
111 $("<span/>").addClass("item_buttons btn-group").append(
112 start_button
112 start_button
113 )
113 )
@@ -150,11 +150,11 b' var IPython = (function (IPython) {'
150
150
151 ClusterItem.prototype.state_running = function () {
151 ClusterItem.prototype.state_running = function () {
152 var that = this;
152 var that = this;
153 var profile_col = $('<div/>').addClass('profile_col span4').text(this.data.profile);
153 var profile_col = $('<div/>').addClass('profile_col col-md-4').text(this.data.profile);
154 var status_col = $('<div/>').addClass('status_col span3').text('running');
154 var status_col = $('<div/>').addClass('status_col col-md-3').text('running');
155 var engines_col = $('<div/>').addClass('engines_col span3').text(this.data.n);
155 var engines_col = $('<div/>').addClass('engines_col col-md-3').text(this.data.n);
156 var stop_button = $('<button/>').addClass("btn btn-default btn-xs").text("Stop");
156 var stop_button = $('<button/>').addClass("btn btn-default btn-xs").text("Stop");
157 var action_col = $('<div/>').addClass('action_col span2').append(
157 var action_col = $('<div/>').addClass('action_col col-md-2').append(
158 $("<span/>").addClass("item_buttons btn-group").append(
158 $("<span/>").addClass("item_buttons btn-group").append(
159 stop_button
159 stop_button
160 )
160 )
@@ -96,10 +96,10 b' data-notebook-path="{{notebook_path}}"'
96
96
97 <div id="cluster_list">
97 <div id="cluster_list">
98 <div id="cluster_list_header" class="row list_header">
98 <div id="cluster_list_header" class="row list_header">
99 <div class="profile_col span4">profile</div>
99 <div class="profile_col col-md-4">profile</div>
100 <div class="status_col span3">status</div>
100 <div class="status_col col-md-3">status</div>
101 <div class="engines_col span3" title="Enter the number of engines to start or empty for default"># of engines</div>
101 <div class="engines_col col-md-3" title="Enter the number of engines to start or empty for default"># of engines</div>
102 <div class="action_col span2">action</div>
102 <div class="action_col col-md-2">action</div>
103 </div>
103 </div>
104 </div>
104 </div>
105 </div>
105 </div>
General Comments 0
You need to be logged in to leave comments. Login now