##// END OF EJS Templates
Initial try at adding tabs to project dashboard.
Brian Granger -
Show More
@@ -7,7 +7,7 b''
7
7
8 #main_app {
8 #main_app {
9 width: 920px;
9 width: 920px;
10 margin: auto;
10 margin: 30px auto 0px auto;
11 }
11 }
12
12
13 #notebooks_toolbar {
13 #notebooks_toolbar {
@@ -51,3 +51,7 b''
51 .highlight_text {
51 .highlight_text {
52 color: blue;
52 color: blue;
53 }
53 }
54
55 .ui-tabs .ui-tabs-nav li a {
56 padding: .3em .5em;
57 }
@@ -14,6 +14,7 b' $(document).ready(function () {'
14
14
15 IPython.page = new IPython.Page();
15 IPython.page = new IPython.Page();
16
16
17 $('div#tabs').tabs();
17 $('div#main_app').addClass('border-box-sizing ui-widget');
18 $('div#main_app').addClass('border-box-sizing ui-widget');
18 $('div#notebooks_toolbar').addClass('ui-widget ui-helper-clearfix');
19 $('div#notebooks_toolbar').addClass('ui-widget ui-helper-clearfix');
19 $('#new_notebook').button().click(function (e) {
20 $('#new_notebook').button().click(function (e) {
@@ -21,22 +21,31 b' data-read-only={{read_only}}'
21
21
22 <div id="main_app">
22 <div id="main_app">
23
23
24 {% if logged_in or not read_only %}
24 <div id="tabs">
25
25 <ul>
26 <div id="notebooks_toolbar">
26 <li><a href="#tab1">Notebooks</a></li>
27 <span id="drag_info">Drag files onto the list to import
27 <li><a href="#tab2">Clusters</a></li>
28 notebooks.</span>
28 </ul>
29
29
30 <span id="notebooks_buttons">
30 <div id="tab1">
31 <button id="new_notebook">New Notebook</button>
31 {% if logged_in or not read_only %}
32 </span>
32 <div id="notebooks_toolbar">
33 <span id="drag_info">Drag files onto the list to import
34 notebooks.</span>
35
36 <span id="notebooks_buttons">
37 <button id="new_notebook">New Notebook</button>
38 </span>
39 </div>
40 {% end %}
41
42 <div id="notebook_list">
43 <div id="project_name"><h2>{{project}}</h2></div>
44 </div>
33 </div>
45 </div>
34
46 <div id="tab2">
35 {% end %}
36
37 <div id="notebook_list">
38 <div id="project_name"><h2>{{project}}</h2></div>
39 </div>
47 </div>
48 </div>
40
49
41 </div>
50 </div>
42
51
General Comments 0
You need to be logged in to leave comments. Login now