##// END OF EJS Templates
remove unused project_dir
MinRK -
Show More
@@ -156,10 +156,6 b' class IPythonHandler(AuthenticatedHandler):'
156 def kernel_spec_manager(self):
156 def kernel_spec_manager(self):
157 return self.settings['kernel_spec_manager']
157 return self.settings['kernel_spec_manager']
158
158
159 @property
160 def project_dir(self):
161 return getattr(self.contents_manager, 'root_dir', '/')
162
163 #---------------------------------------------------------------
159 #---------------------------------------------------------------
164 # CORS
160 # CORS
165 #---------------------------------------------------------------
161 #---------------------------------------------------------------
@@ -31,7 +31,6 b' class NotebookHandler(IPythonHandler):'
31 name = url_escape(name)
31 name = url_escape(name)
32 path = url_escape(path)
32 path = url_escape(path)
33 self.write(self.render_template('notebook.html',
33 self.write(self.render_template('notebook.html',
34 project=self.project_dir,
35 notebook_path=path,
34 notebook_path=path,
36 notebook_name=name,
35 notebook_name=name,
37 kill_kernel=False,
36 kill_kernel=False,
@@ -10,7 +10,6 b''
10
10
11 {% block params %}
11 {% block params %}
12
12
13 data-project="{{project}}"
14 data-base-url="{{base_url}}"
13 data-base-url="{{base_url}}"
15 data-notebook-path="{{notebook_path}}"
14 data-notebook-path="{{notebook_path}}"
16
15
@@ -53,7 +53,6 b' class TreeHandler(IPythonHandler):'
53 breadcrumbs = self.generate_breadcrumbs(path)
53 breadcrumbs = self.generate_breadcrumbs(path)
54 page_title = self.generate_page_title(path)
54 page_title = self.generate_page_title(path)
55 self.write(self.render_template('tree.html',
55 self.write(self.render_template('tree.html',
56 project=self.project_dir,
57 page_title=page_title,
56 page_title=page_title,
58 notebook_path=path,
57 notebook_path=path,
59 breadcrumbs=breadcrumbs
58 breadcrumbs=breadcrumbs
General Comments 0
You need to be logged in to leave comments. Login now