##// END OF EJS Templates
unhide on not read-only instead of inverse
Matthias BUSSONNIER -
Show More
@@ -85,6 +85,7 b' var IPython = (function (IPython) {'
85 if (!IPython.read_only){
85 if (!IPython.read_only){
86 // hide delete buttons when readonly
86 // hide delete buttons when readonly
87 this.add_delete_button(item);
87 this.add_delete_button(item);
88 $('#drag_info').removeClass('hidden');
88 } else {
89 } else {
89 $('#drag_info').remove();
90 $('#drag_info').remove();
90 }
91 }
@@ -33,9 +33,10 b' $(document).ready(function () {'
33 IPython.login_widget = new IPython.LoginWidget('span#login_widget');
33 IPython.login_widget = new IPython.LoginWidget('span#login_widget');
34
34
35 if (IPython.read_only){
35 if (IPython.read_only){
36 $('#new_notebook').addClass('hidden');
37 // unhide login button if it's relevant
36 // unhide login button if it's relevant
38 $('span#login_widget').removeClass('hidden');
37 $('span#login_widget').removeClass('hidden');
38 } else {
39 $('#new_notebook').removeClass('hidden');
39 }
40 }
40 IPython.notebook_list.load_list();
41 IPython.notebook_list.load_list();
41
42
@@ -20,9 +20,9 b' data-base-kernel-url={{base_kernel_url}}'
20
20
21 {% block content_panel %}
21 {% block content_panel %}
22 <div id="content_toolbar">
22 <div id="content_toolbar">
23 <span id="drag_info">Drag files onto the list to import notebooks.</span>
23 <span id="drag_info" class="hidden">Drag files onto the list to import notebooks.</span>
24 <span id="notebooks_buttons">
24 <span id="notebooks_buttons">
25 <button id="new_notebook">New Notebook</button>
25 <button id="new_notebook" class="hidden">New Notebook</button>
26 </span>
26 </span>
27 </div>
27 </div>
28 <div id="notebook_list">
28 <div id="notebook_list">
General Comments 0
You need to be logged in to leave comments. Login now