##// END OF EJS Templates
Merge pull request #931 from minrk/readonly...
Merge pull request #931 from minrk/readonly The notebook now supports a `--read-only` flag, which allows users to view all notebooks being served but not to edit them or execute any code. These actions are not allowed and the buttons, shortcuts, etc. are removed, but the requests will raise authentication errors if they manage to send the events anyway. Save/print functions remain available. This flag can be used in two modes: 1. When running an unauthenticated server, one can run a *second* read-only server in the same directory on a public IP address. This will let users connect to the read-only view without having to worry about configuring passwords and certificates for the execution server. 2. When running a server configured with authentication (and hopefully an SSL certificate), starting it with `--read-only` allows unauthenticated users read-only access to notebooks. This means that the same server on a single port can be both used by authenticated users for execution and by the public for viewing the available notebooks.

File last commit:

r5213:81edd9fc
r5219:80e60eb2 merge
Show More
login.html
55 lines | 1.4 KiB | text/html | HtmlLexer
MinRK
notebook auth adjustments...
r4705 <!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>IPython Notebook</title>
<link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
<link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" />
<link rel="stylesheet" href="static/css/layout.css" type="text/css" />
<link rel="stylesheet" href="static/css/base.css" type="text/css" />
Brian E. Granger
Simplifying logic on login page.
r5109
MinRK
move read_only flag to page-level...
r5213 <meta name="read_only" content="{{read_only}}"/>
MinRK
notebook auth adjustments...
r4705 </head>
Brian E. Granger
Simplifying logic on login page.
r5109 <body>
MinRK
notebook auth adjustments...
r4705
<div id="header">
<span id="ipython_notebook"><h1>IPython Notebook</h1></span>
</div>
<div id="header_border"></div>
<div id="main_app">
<div id="app_hbox">
<div id="left_panel">
</div>
<div id="content_panel">
Brian E. Granger
Simplifying logic on login page.
r5109 <form action="/login?next={{url_escape(next)}}" method="post">
MinRK
notebook auth adjustments...
r4705 Password: <input type="password" name="password">
MinRK
style Sign In button with jQuery
r5122 <input type="submit" value="Sign in" id="signin">
MinRK
notebook auth adjustments...
r4705 </form>
</div>
<div id="right_panel">
</div>
</div>
</div>
<script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script>
<script src="static/js/namespace.js" type="text/javascript" charset="utf-8"></script>
Brian E. Granger
Further cleanup and renaming of notebook.
r5111 <script src="static/js/loginmain.js" type="text/javascript" charset="utf-8"></script>
MinRK
notebook auth adjustments...
r4705
</body>
</html>