Show More
@@ -211,8 +211,8 b' class ProjectDashboardHandler(AuthenticatedHandler):' | |||
|
211 | 211 | def get(self): |
|
212 | 212 | nbm = self.application.notebook_manager |
|
213 | 213 | project = nbm.notebook_dir |
|
214 |
|
|
|
215 |
self.write( |
|
|
214 | template = self.application.jinja2_env.get_template('projectdashboard.html') | |
|
215 | self.write( template.render(project=project, | |
|
216 | 216 | base_project_url=self.application.ipython_app.base_project_url, |
|
217 | 217 | base_kernel_url=self.application.ipython_app.base_kernel_url, |
|
218 | 218 | read_only=self.read_only, |
@@ -223,8 +223,8 b' class ProjectDashboardHandler(AuthenticatedHandler):' | |||
|
223 | 223 | class LoginHandler(AuthenticatedHandler): |
|
224 | 224 | |
|
225 | 225 | def _render(self, message=None): |
|
226 |
|
|
|
227 |
self.write( |
|
|
226 | template = self.application.jinja2_env.get_template('login.html') | |
|
227 | self.write( template.render( | |
|
228 | 228 | next=self.get_argument('next', default=self.application.ipython_app.base_project_url), |
|
229 | 229 | read_only=self.read_only, |
|
230 | 230 | logged_in=self.logged_in, |
@@ -260,8 +260,8 b' class LogoutHandler(AuthenticatedHandler):' | |||
|
260 | 260 | else: |
|
261 | 261 | message = {'warning': 'Cannot log out. Notebook authentication ' |
|
262 | 262 | 'is disabled.'} |
|
263 |
|
|
|
264 |
self.write( |
|
|
263 | template = self.application.jinja2_env.get_template('logout.html') | |
|
264 | self.write( template.render( | |
|
265 | 265 | read_only=self.read_only, |
|
266 | 266 | logged_in=self.logged_in, |
|
267 | 267 | login_available=self.login_available, |
@@ -286,8 +286,8 b' class NamedNotebookHandler(AuthenticatedHandler):' | |||
|
286 | 286 | project = nbm.notebook_dir |
|
287 | 287 | if not nbm.notebook_exists(notebook_id): |
|
288 | 288 | raise web.HTTPError(404, u'Notebook does not exist: %s' % notebook_id) |
|
289 |
|
|
|
290 |
self.write( |
|
|
289 | template = self.application.jinja2_env.get_template('notebook.html') | |
|
290 | self.write( template.render(project=project, | |
|
291 | 291 | notebook_id=notebook_id, |
|
292 | 292 | base_project_url=self.application.ipython_app.base_project_url, |
|
293 | 293 | base_kernel_url=self.application.ipython_app.base_kernel_url, |
@@ -306,8 +306,8 b' class PrintNotebookHandler(AuthenticatedHandler):' | |||
|
306 | 306 | project = nbm.notebook_dir |
|
307 | 307 | if not nbm.notebook_exists(notebook_id): |
|
308 | 308 | raise web.HTTPError(404, u'Notebook does not exist: %s' % notebook_id) |
|
309 |
|
|
|
310 |
self.write( |
|
|
309 | template = self.application.jinja2_env.get_template('printnotebook.html') | |
|
310 | self.write( template.render( | |
|
311 | 311 | project=project, |
|
312 | 312 | notebook_id=notebook_id, |
|
313 | 313 | base_project_url=self.application.ipython_app.base_project_url, |
General Comments 0
You need to be logged in to leave comments.
Login now