Permalink
Browse files

Correctly set read_only meta name for use in javascript. Note that th…

…is has a different meaning than in the Python code: not whether the read-only flag was specified upon launch, but whether the notebook is in read-only mode and input should be disabled.
  • Loading branch information...
1 parent 8326cad commit 5fd0e9674cdeb476defcc22f2f193ed4f2ae622c @stefanv committed Dec 14, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 IPython/frontend/html/notebook/templates/notebook.html
@@ -29,8 +29,10 @@
<link rel="stylesheet" href="static/css/base.css" type="text/css" />
<link rel="stylesheet" href="static/css/notebook.css" type="text/css" />
<link rel="stylesheet" href="static/css/renderedhtml.css" type="text/css" />
-
- <meta name="read_only" content="{{read_only}}"/>
+
+ {% comment In the notebook, the read-only flag is used to determine %}
+ {% comment whether to hide the side panels and switch off input %}
+ <meta name="read_only" content="{{read_only and not logged_in}}"/>
</head>

0 comments on commit 5fd0e96

Please sign in to comment.