Show More
@@ -1406,15 +1406,20 b' ul.icons-ul{list-style-type:none;text-indent:-0.7142857142857143em;margin-left:2' | |||||
1406 | .toolbar_info{float:left;} |
|
1406 | .toolbar_info{float:left;} | |
1407 | .toolbar_buttons{float:right;} |
|
1407 | .toolbar_buttons{float:right;} | |
1408 | .list_header>a{font-size:100%;} |
|
1408 | .list_header>a{font-size:100%;} | |
|
1409 | .tree_list{margin-top:16px;margin-bottom:16px;border:1px solid #eeeeee;border-radius:4px;} | |||
|
1410 | .tree_list>div{border-bottom:1px solid #eeeeee;}.tree_list>div:hover .list-item{background-color:red;} | |||
|
1411 | .tree_list>div:last-child{border:none;} | |||
|
1412 | .list_item:hover .list_item{background-color:#ddd;} | |||
|
1413 | .tree_list>div>span,.tree_list>div>div{padding:8px;} | |||
1409 | .cluster_list_item>a{color:#000000 !important;} |
|
1414 | .cluster_list_item>a{color:#000000 !important;} | |
1410 | .notebook_item a{text-decoration:none;} |
|
1415 | .notebook_item a{text-decoration:none;} | |
1411 | .status_col{float:right;width:325px;} |
|
1416 | .status_col{float:right;width:325px;} | |
1412 | .engines_col{float:right;width:325px;} |
|
1417 | .engines_col{float:right;width:325px;} | |
1413 | .action_col{float:right;width:64px;text-align:right;} |
|
1418 | .action_col{float:right;width:64px;text-align:right;} | |
1414 |
.item_buttons{ |
|
1419 | .item_buttons{} | |
1415 | input.nbname_input{height:15px;} |
|
1420 | input.nbname_input{height:15px;} | |
1416 | .highlight_text{color:blue;} |
|
1421 | .highlight_text{color:blue;} | |
1417 |
#project_name>.breadcrumb{padding:0px;margin:0px;background-color:transparent;font- |
|
1422 | #project_name>.breadcrumb{padding:0px;margin-bottom:0px;background-color:transparent;font-weight:bold;} | |
1418 | input.engine_num_input{height:20px;margin-bottom:2px;padding-top:0;padding-bottom:0;width:90px;} |
|
1423 | input.engine_num_input{height:20px;margin-bottom:2px;padding-top:0;padding-bottom:0;width:90px;} | |
1419 | .ansiblack{color:black;} |
|
1424 | .ansiblack{color:black;} | |
1420 | .ansired{color:darkred;} |
|
1425 | .ansired{color:darkred;} |
@@ -18,9 +18,9 b' $(document).ready(function () {' | |||||
18 | }); |
|
18 | }); | |
19 |
|
19 | |||
20 | IPython.read_only = $('body').data('readOnly') === 'True'; |
|
20 | IPython.read_only = $('body').data('readOnly') === 'True'; | |
21 |
IPython.notebook_list = new IPython.NotebookList(' |
|
21 | IPython.notebook_list = new IPython.NotebookList('#notebook_list'); | |
22 |
IPython.cluster_list = new IPython.ClusterList(' |
|
22 | IPython.cluster_list = new IPython.ClusterList('#cluster_list'); | |
23 |
IPython.login_widget = new IPython.LoginWidget(' |
|
23 | IPython.login_widget = new IPython.LoginWidget('#login_widget'); | |
24 |
|
24 | |||
25 | var interval_id=0; |
|
25 | var interval_id=0; | |
26 | // auto refresh every xx secondes, no need to be fast, |
|
26 | // auto refresh every xx secondes, no need to be fast, |
@@ -28,7 +28,8 b' var IPython = (function (IPython) {' | |||||
28 | $('#notebook_toolbar').addClass('list_toolbar'); |
|
28 | $('#notebook_toolbar').addClass('list_toolbar'); | |
29 | $('#drag_info').addClass('toolbar_info'); |
|
29 | $('#drag_info').addClass('toolbar_info'); | |
30 | $('#notebook_buttons').addClass('toolbar_buttons'); |
|
30 | $('#notebook_buttons').addClass('toolbar_buttons'); | |
31 |
$(' |
|
31 | $('#notebook_list_header').addClass('list_header'); | |
|
32 | this.element.addClass("tree_list"); | |||
32 | }; |
|
33 | }; | |
33 |
|
34 | |||
34 |
|
35 | |||
@@ -141,16 +142,16 b' var IPython = (function (IPython) {' | |||||
141 |
|
142 | |||
142 |
|
143 | |||
143 | NotebookList.prototype.new_notebook_item = function (index) { |
|
144 | NotebookList.prototype.new_notebook_item = function (index) { | |
144 |
var item = $('< |
|
145 | var item = $('<div/>').addClass("list_item").addClass("row-fluid"); | |
145 | // item.addClass('list_item ui-widget ui-widget-content ui-helper-clearfix'); |
|
146 | // item.addClass('list_item ui-widget ui-widget-content ui-helper-clearfix'); | |
146 | // item.css('border-top-style','none'); |
|
147 | // item.css('border-top-style','none'); | |
147 | item.append( |
|
148 | item.append($("<div/>").addClass("span12").append( | |
148 |
$( |
|
149 | $("<a/>").addClass("item_link").append( | |
149 | $("<span/>").addClass("item_name") |
|
150 | $("<span/>").addClass("item_name") | |
150 | ).append( |
|
|||
151 | $('<span/>').addClass("item_buttons btn-group pull-right") |
|
|||
152 | ) |
|
151 | ) | |
153 | ) |
|
152 | ).append( | |
|
153 | $('<div/>').addClass("item_buttons btn-group pull-right") | |||
|
154 | )); | |||
154 |
|
155 | |||
155 | if (index === -1) { |
|
156 | if (index === -1) { | |
156 | this.element.append(item); |
|
157 | this.element.append(item); | |
@@ -164,29 +165,22 b' var IPython = (function (IPython) {' | |||||
164 | NotebookList.prototype.add_link = function (notebook_id, nbname, item) { |
|
165 | NotebookList.prototype.add_link = function (notebook_id, nbname, item) { | |
165 | item.data('nbname', nbname); |
|
166 | item.data('nbname', nbname); | |
166 | item.data('notebook_id', notebook_id); |
|
167 | item.data('notebook_id', notebook_id); | |
167 |
item.find(" |
|
168 | item.find(".item_name").text(nbname); | |
|
169 | item.find("a.item_link") | |||
168 | .attr('href', this.baseProjectUrl()+notebook_id) |
|
170 | .attr('href', this.baseProjectUrl()+notebook_id) | |
169 | .attr('target','_blank') |
|
171 | .attr('target','_blank'); | |
170 | .find(".item_name").text(nbname); |
|
|||
171 | }; |
|
172 | }; | |
172 |
|
173 | |||
173 |
|
174 | |||
174 | NotebookList.prototype.add_name_input = function (nbname, item) { |
|
175 | NotebookList.prototype.add_name_input = function (nbname, item) { | |
175 | item.data('nbname', nbname); |
|
176 | item.data('nbname', nbname); | |
176 | var new_item_name = $('<span/>').addClass('item_name'); |
|
177 | item.find(".item_name").empty().append( | |
177 | new_item_name.append( |
|
|||
178 | $('<input/>') |
|
178 | $('<input/>') | |
179 | .addClass("nbname_input") |
|
179 | .addClass("nbname_input") | |
180 | .attr('value', nbname) |
|
180 | .attr('value', nbname) | |
181 | .attr('size', '30') |
|
181 | .attr('size', '30') | |
182 | .attr('type', 'text') |
|
182 | .attr('type', 'text') | |
183 | ); |
|
183 | ); | |
184 | var e = item.find('.item_name'); |
|
|||
185 | if (e.length === 0) { |
|
|||
186 | item.append(new_item_name); |
|
|||
187 | } else { |
|
|||
188 | e.replaceWith(new_item_name); |
|
|||
189 | }; |
|
|||
190 | }; |
|
184 | }; | |
191 |
|
185 | |||
192 |
|
186 |
@@ -26,10 +26,38 b'' | |||||
26 | float: right; |
|
26 | float: right; | |
27 | } |
|
27 | } | |
28 |
|
28 | |||
29 | .list_header > a{ |
|
29 | .list_header > a { | |
30 | font-size: 100%; |
|
30 | font-size: 100%; | |
31 | } |
|
31 | } | |
32 |
|
32 | |||
|
33 | .tree_list { | |||
|
34 | margin-top: 16px; | |||
|
35 | margin-bottom: 16px; | |||
|
36 | border: 1px solid @borderColor; | |||
|
37 | border-radius: 4px; | |||
|
38 | } | |||
|
39 | ||||
|
40 | .tree_list > div { | |||
|
41 | border-bottom: 1px solid @borderColor; | |||
|
42 | &:hover .list-item{ | |||
|
43 | background-color: red; | |||
|
44 | }; | |||
|
45 | } | |||
|
46 | ||||
|
47 | .tree_list > div:last-child { | |||
|
48 | border: none; | |||
|
49 | } | |||
|
50 | ||||
|
51 | ||||
|
52 | .list_item { | |||
|
53 | &:hover .list_item { | |||
|
54 | background-color: #ddd; | |||
|
55 | }; | |||
|
56 | } | |||
|
57 | ||||
|
58 | .tree_list > div > span, .tree_list > div > div { | |||
|
59 | padding: 8px; | |||
|
60 | } | |||
33 |
|
61 | |||
34 |
|
62 | |||
35 | .cluster_list_item > a { |
|
63 | .cluster_list_item > a { | |
@@ -60,7 +88,7 b'' | |||||
60 | } |
|
88 | } | |
61 |
|
89 | |||
62 | .item_buttons { |
|
90 | .item_buttons { | |
63 |
|
|
91 | /* float: right;*/ | |
64 | } |
|
92 | } | |
65 |
|
93 | |||
66 | input.nbname_input { |
|
94 | input.nbname_input { | |
@@ -73,10 +101,11 b' input.nbname_input {' | |||||
73 |
|
101 | |||
74 |
|
102 | |||
75 | #project_name > .breadcrumb { |
|
103 | #project_name > .breadcrumb { | |
76 | padding: 0px; |
|
104 | padding: 0px; | |
77 | margin: 0px; |
|
105 | margin-bottom: 0px; | |
78 | background-color: transparent; |
|
106 | background-color: transparent; | |
79 | font-size: 120%; |
|
107 | font-weight: bold; | |
|
108 | ||||
80 | } |
|
109 | } | |
81 |
|
110 | |||
82 | input.engine_num_input { |
|
111 | input.engine_num_input { |
@@ -45,19 +45,17 b' data-read-only={{read_only}}' | |||||
45 | </div> |
|
45 | </div> | |
46 | {% endif %} |
|
46 | {% endif %} | |
47 |
|
47 | |||
48 |
< |
|
48 | <div id="notebook_list"> | |
49 |
< |
|
49 | <div id="notebook_list_header" class="row-fluid"> | |
50 | <a> |
|
50 | <div id="project_name"> | |
51 | <div id="project_name" class="nav-header"> |
|
|||
52 | <ul class="breadcrumb"> |
|
51 | <ul class="breadcrumb"> | |
53 | {% for component in project_component %} |
|
52 | {% for component in project_component %} | |
54 | <li>{{component}} <span>/</span></li> |
|
53 | <li>{{component}} <span>/</span></li> | |
55 | {% endfor %} |
|
54 | {% endfor %} | |
56 | </ul> |
|
55 | </ul> | |
57 | </div> |
|
56 | </div> | |
58 |
|
|
57 | </div> | |
59 |
|
|
58 | </div> | |
60 | </ul> |
|
|||
61 | </div> |
|
59 | </div> | |
62 |
|
60 | |||
63 | <div id="tab2" class="tab-pane"> |
|
61 | <div id="tab2" class="tab-pane"> |
General Comments 0
You need to be logged in to leave comments.
Login now