Show More
@@ -1,79 +1,85 | |||
|
1 | 1 | <!DOCTYPE HTML> |
|
2 | 2 | <html> |
|
3 | 3 | |
|
4 | 4 | <head> |
|
5 | 5 | <meta charset="utf-8"> |
|
6 | 6 | |
|
7 | 7 | <title>{% block title %}IPython Notebook{% end %}</title> |
|
8 | 8 | |
|
9 | 9 | <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" /> |
|
10 | 10 | <link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" /> |
|
11 | 11 | <link rel="stylesheet" href="static/css/layout.css" type="text/css" /> |
|
12 | 12 | <link rel="stylesheet" href="static/css/base.css" type="text/css"/> |
|
13 | 13 | {% block stylesheet %} |
|
14 | 14 | {% end %} |
|
15 | 15 | |
|
16 | 16 | {% block meta %} |
|
17 | 17 | {% end %} |
|
18 | 18 | |
|
19 | 19 | </head> |
|
20 | 20 | |
|
21 | 21 | <body {% block params %}{% end %}> |
|
22 | 22 | |
|
23 | 23 | <div id="header"> |
|
24 | 24 | <span id="ipython_notebook"><h1><img src='static/ipynblogo.png' alt='IPython Notebook'/></h1></span> |
|
25 | ||
|
26 | {% block login_widget %} | |
|
27 | ||
|
25 | 28 | <span id="login_widget"> |
|
26 | 29 | {% if logged_in %} |
|
27 | 30 | <button id="logout">Logout</button> |
|
28 | 31 | {% elif login_available and not logged_in %} |
|
29 | 32 | <button id="login">Login</button> |
|
30 | 33 | {% end %} |
|
31 | 34 | </span> |
|
35 | ||
|
36 | {% end %} | |
|
37 | ||
|
32 | 38 | {% block header %} |
|
33 | 39 | {% end %} |
|
34 | 40 | </div> |
|
35 | 41 | |
|
36 | 42 | <div id="header_border"></div> |
|
37 | 43 | |
|
38 | 44 | <div id="main_app"> |
|
39 | 45 | |
|
40 | 46 | <div id="app_hbox"> |
|
41 | 47 | |
|
42 | 48 | <div id="left_panel"> |
|
43 | 49 | {% block left_panel %} |
|
44 | 50 | {% end %} |
|
45 | 51 | </div> |
|
46 | 52 | |
|
47 | 53 | <div id="content_panel"> |
|
48 | 54 | {% if message %} |
|
49 | 55 | |
|
50 | 56 | {% for key in message %} |
|
51 | 57 | <div class="message {{key}}"> |
|
52 | 58 | {{message[key]}} |
|
53 | 59 | </div> |
|
54 | 60 | {% end %} |
|
55 | 61 | {% end %} |
|
56 | 62 | |
|
57 | 63 | {% block content_panel %} |
|
58 | 64 | {% end %} |
|
59 | 65 | </div> |
|
60 | 66 | <div id="right_panel"> |
|
61 | 67 | {% block right_panel %} |
|
62 | 68 | {% end %} |
|
63 | 69 | </div> |
|
64 | 70 | |
|
65 | 71 | </div> |
|
66 | 72 | |
|
67 | 73 | </div> |
|
68 | 74 | |
|
69 | 75 | <script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script> |
|
70 | 76 | <script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script> |
|
71 | 77 | <script src="static/js/namespace.js" type="text/javascript" charset="utf-8"></script> |
|
72 | 78 | <script src="static/js/loginmain.js" type="text/javascript" charset="utf-8"></script> |
|
73 | 79 | <script src="static/js/loginwidget.js" type="text/javascript" charset="utf-8"></script> |
|
74 | 80 | {% block script %} |
|
75 | 81 | {% end %} |
|
76 | 82 | |
|
77 | 83 | </body> |
|
78 | 84 | |
|
79 | 85 | </html> |
@@ -1,23 +1,26 | |||
|
1 | 1 | {% extends layout.html %} |
|
2 | 2 | |
|
3 | 3 | {% block content_panel %} |
|
4 | 4 | |
|
5 | 5 | {% if login_available %} |
|
6 | 6 | |
|
7 | 7 | <form action="/login?next={{url_escape(next)}}" method="post"> |
|
8 | 8 | Password: <input type="password" name="password" id="focus"> |
|
9 | 9 | <input type="submit" value="Sign in" id="signin"> |
|
10 | 10 | </form> |
|
11 | 11 | |
|
12 | 12 | {% end %} |
|
13 | 13 | |
|
14 | 14 | {% end %} |
|
15 | 15 | |
|
16 | {% block login_widget %} | |
|
17 | {% end %} | |
|
18 | ||
|
16 | 19 | {% block script %} |
|
17 | 20 | <script type="text/javascript"> |
|
18 | 21 | $(document).ready(function() { |
|
19 | 22 | IPython.login_widget = new IPython.LoginWidget('span#login_widget'); |
|
20 | 23 | $('#focus').focus(); |
|
21 | 24 | }); |
|
22 | 25 | </script> |
|
23 | 26 | {% end %} |
@@ -1,25 +1,28 | |||
|
1 | 1 | {% extends layout.html %} |
|
2 | 2 | |
|
3 | 3 | {% block content_panel %} |
|
4 | 4 | <ul> |
|
5 | 5 | {% if read_only or not login_available %} |
|
6 | 6 | |
|
7 | 7 | Proceed to the <a href="/">list of notebooks</a>.</li> |
|
8 | 8 | |
|
9 | 9 | {% else %} |
|
10 | 10 | |
|
11 | 11 | Proceed to the <a href="/login">login page</a>.</li> |
|
12 | 12 | |
|
13 | 13 | {% end %} |
|
14 | 14 | |
|
15 | 15 | </ul> |
|
16 | 16 | |
|
17 | 17 | {% end %} |
|
18 | 18 | |
|
19 | {% block login_widget %} | |
|
20 | {% end %} | |
|
21 | ||
|
19 | 22 | {% block script %} |
|
20 | 23 | <script type="text/javascript"> |
|
21 | 24 | $(document).ready(function() { |
|
22 | 25 | IPython.login_widget = new IPython.LoginWidget('span#login_widget'); |
|
23 | 26 | }); |
|
24 | 27 | </script> |
|
25 | 28 | {% end %} |
General Comments 0
You need to be logged in to leave comments.
Login now