Added kill_kernel to notebook template.

This commit is contained in:
Brian E. Granger 2011-09-10 10:57:55 -07:00 committed by MinRK
parent 6c5f69e97a
commit 9b945e7bc2
2 changed files with 9 additions and 3 deletions

View File

@ -90,7 +90,8 @@ class NewHandler(AuthenticatedHandler):
self.render( self.render(
'notebook.html', project=project, 'notebook.html', project=project,
notebook_id=notebook_id, notebook_id=notebook_id,
base_project_url=u'/', base_kernel_url=u'/' base_project_url=u'/', base_kernel_url=u'/',
kill_kernel=False
) )
@ -105,7 +106,8 @@ class NamedNotebookHandler(AuthenticatedHandler):
self.render( self.render(
'notebook.html', project=project, 'notebook.html', project=project,
notebook_id=notebook_id, notebook_id=notebook_id,
base_project_url=u'/', base_kernel_url=u'/' base_project_url=u'/', base_kernel_url=u'/',
kill_kernel=False
) )

View File

@ -191,7 +191,11 @@
</div> </div>
<div class="section_row"> <div class="section_row">
<span id="kernel_persist"> <span id="kernel_persist">
<input type="checkbox" id="kill_kernel"></input> {% if kill_kernel %}
<input type="checkbox" id="kill_kernel" checked="true"></input>
{% else %}
<input type="checkbox" id="kill_kernel"></input>
{% end %}
</span> </span>
<span class="checkbox_label" id="kill_kernel_label">Kill kernel upon exit:</span> <span class="checkbox_label" id="kill_kernel_label">Kill kernel upon exit:</span>
</div> </div>