Show More
@@ -1,22 +1,21 b'' | |||||
1 | //---------------------------------------------------------------------------- |
|
1 | //---------------------------------------------------------------------------- | |
2 | // Copyright (C) 2008-2011 The IPython Development Team |
|
2 | // Copyright (C) 2008-2011 The IPython Development Team | |
3 | // |
|
3 | // | |
4 | // Distributed under the terms of the BSD License. The full license is in |
|
4 | // Distributed under the terms of the BSD License. The full license is in | |
5 | // the file COPYING, distributed as part of this software. |
|
5 | // the file COPYING, distributed as part of this software. | |
6 | //---------------------------------------------------------------------------- |
|
6 | //---------------------------------------------------------------------------- | |
7 |
|
7 | |||
8 | //============================================================================ |
|
8 | //============================================================================ | |
9 | // On document ready |
|
9 | // On document ready | |
10 | //============================================================================ |
|
10 | //============================================================================ | |
11 |
|
11 | |||
12 |
|
12 | |||
13 | $(document).ready(function () { |
|
13 | $(document).ready(function () { | |
14 |
|
14 | |||
15 | IPython.page = new IPython.Page(); |
|
15 | IPython.page = new IPython.Page(); | |
16 |
$(' |
|
16 | $('button#login_submit').addClass("btn"); | |
17 | $('#ipython-main-app').addClass('border-box-sizing ui-widget'); |
|
|||
18 | IPython.page.show(); |
|
17 | IPython.page.show(); | |
19 | $('input#password_input').focus(); |
|
18 | $('input#password_input').focus(); | |
20 |
|
19 | |||
21 | }); |
|
20 | }); | |
22 |
|
21 |
@@ -1,46 +1,45 b'' | |||||
1 | //---------------------------------------------------------------------------- |
|
1 | //---------------------------------------------------------------------------- | |
2 | // Copyright (C) 2008-2011 The IPython Development Team |
|
2 | // Copyright (C) 2008-2011 The IPython Development Team | |
3 | // |
|
3 | // | |
4 | // Distributed under the terms of the BSD License. The full license is in |
|
4 | // Distributed under the terms of the BSD License. The full license is in | |
5 | // the file COPYING, distributed as part of this software. |
|
5 | // the file COPYING, distributed as part of this software. | |
6 | //---------------------------------------------------------------------------- |
|
6 | //---------------------------------------------------------------------------- | |
7 |
|
7 | |||
8 | //============================================================================ |
|
8 | //============================================================================ | |
9 | // Login button |
|
9 | // Login button | |
10 | //============================================================================ |
|
10 | //============================================================================ | |
11 |
|
11 | |||
12 | var IPython = (function (IPython) { |
|
12 | var IPython = (function (IPython) { | |
13 |
|
13 | |||
14 | var LoginWidget = function (selector, options) { |
|
14 | var LoginWidget = function (selector, options) { | |
15 | var options = options || {}; |
|
15 | var options = options || {}; | |
16 | this.base_url = options.baseProjectUrl ||Β $('body').data('baseProjectUrl') ; |
|
16 | this.base_url = options.baseProjectUrl ||Β $('body').data('baseProjectUrl') ; | |
17 | this.selector = selector; |
|
17 | this.selector = selector; | |
18 | if (this.selector !== undefined) { |
|
18 | if (this.selector !== undefined) { | |
19 | this.element = $(selector); |
|
19 | this.element = $(selector); | |
20 | this.style(); |
|
20 | this.style(); | |
21 | this.bind_events(); |
|
21 | this.bind_events(); | |
22 | } |
|
22 | } | |
23 | }; |
|
23 | }; | |
24 |
|
24 | |||
25 | LoginWidget.prototype.style = function () { |
|
25 | LoginWidget.prototype.style = function () { | |
26 |
this.element.find( |
|
26 | this.element.find("button").addClass("btn"); | |
27 | this.element.find('button#login').button(); |
|
|||
28 | }; |
|
27 | }; | |
29 |
|
28 | |||
30 |
|
29 | |||
31 | LoginWidget.prototype.bind_events = function () { |
|
30 | LoginWidget.prototype.bind_events = function () { | |
32 | var that = this; |
|
31 | var that = this; | |
33 | this.element.find("button#logout").click(function () { |
|
32 | this.element.find("button#logout").click(function () { | |
34 | window.location = that.base_url+"logout"; |
|
33 | window.location = that.base_url+"logout"; | |
35 | }); |
|
34 | }); | |
36 | this.element.find("button#login").click(function () { |
|
35 | this.element.find("button#login").click(function () { | |
37 | window.location = that.base_url+"login"; |
|
36 | window.location = that.base_url+"login"; | |
38 | }); |
|
37 | }); | |
39 | }; |
|
38 | }; | |
40 |
|
39 | |||
41 | // Set module variables |
|
40 | // Set module variables | |
42 | IPython.LoginWidget = LoginWidget; |
|
41 | IPython.LoginWidget = LoginWidget; | |
43 |
|
42 | |||
44 | return IPython; |
|
43 | return IPython; | |
45 |
|
44 | |||
46 | }(IPython)); |
|
45 | }(IPython)); |
@@ -1,20 +1,20 b'' | |||||
1 | //---------------------------------------------------------------------------- |
|
1 | //---------------------------------------------------------------------------- | |
2 | // Copyright (C) 2008-2011 The IPython Development Team |
|
2 | // Copyright (C) 2008-2011 The IPython Development Team | |
3 | // |
|
3 | // | |
4 | // Distributed under the terms of the BSD License. The full license is in |
|
4 | // Distributed under the terms of the BSD License. The full license is in | |
5 | // the file COPYING, distributed as part of this software. |
|
5 | // the file COPYING, distributed as part of this software. | |
6 | //---------------------------------------------------------------------------- |
|
6 | //---------------------------------------------------------------------------- | |
7 |
|
7 | |||
8 | //============================================================================ |
|
8 | //============================================================================ | |
9 | // On document ready |
|
9 | // On document ready | |
10 | //============================================================================ |
|
10 | //============================================================================ | |
11 |
|
11 | |||
12 |
|
12 | |||
13 | $(document).ready(function () { |
|
13 | $(document).ready(function () { | |
14 |
|
14 | |||
15 | IPython.page = new IPython.Page(); |
|
15 | IPython.page = new IPython.Page(); | |
16 |
$('#ipython-main-app').addClass('border-box-sizing |
|
16 | $('#ipython-main-app').addClass('border-box-sizing'); | |
17 | IPython.page.show(); |
|
17 | IPython.page.show(); | |
18 |
|
18 | |||
19 | }); |
|
19 | }); | |
20 |
|
20 |
@@ -1,40 +1,47 b'' | |||||
1 | {% extends "page.html" %} |
|
1 | {% extends "page.html" %} | |
2 |
|
2 | |||
3 |
|
3 | |||
4 | {% block stylesheet %} |
|
4 | {% block stylesheet %} | |
5 | {{super()}} |
|
5 | {{super()}} | |
6 | <link rel="stylesheet" href="{{ static_url("auth/css/override.css") }}" type="text/css" /> |
|
6 | <link rel="stylesheet" href="{{ static_url("auth/css/override.css") }}" type="text/css" /> | |
7 | {% endblock %} |
|
7 | {% endblock %} | |
8 |
|
8 | |||
9 | {% block login_widget %} |
|
9 | {% block login_widget %} | |
10 | {% endblock %} |
|
10 | {% endblock %} | |
11 |
|
11 | |||
12 | {% block site %} |
|
12 | {% block site %} | |
13 |
|
13 | |||
14 | <div id="ipython-main-app"> |
|
14 | <div id="ipython-main-app"> | |
15 |
|
15 | |||
16 | {% if login_available %} |
|
16 | {% if login_available %} | |
17 | <form action="{{base_project_url}}login?next={{next}}" method="post"> |
|
17 | <div class="navbar"> | |
18 | Password: <input type="password" class='ui-widget ui-widget-content' name="password" id="password_input"> |
|
18 | <div class="navbar-inner"> | |
19 | <input type="submit" value="Log in" id="login_submit"> |
|
19 | <div class="container"> | |
20 | </form> |
|
20 | <p class="nav navbar-text">Password:</p> | |
|
21 | <form action="{{base_project_url}}login?next={{next}}" method="post" class="navbar-form pull-left"> | |||
|
22 | <input type="password" name="password" id="password_input"> | |||
|
23 | <button type="submit" id="login_submit">Log in</button> | |||
|
24 | </form> | |||
|
25 | </div> | |||
|
26 | </div> | |||
|
27 | </div> | |||
21 | {% endif %} |
|
28 | {% endif %} | |
22 |
|
29 | |||
23 | {% if message %} |
|
30 | {% if message %} | |
24 | {% for key in message %} |
|
31 | {% for key in message %} | |
25 | <div class="message {{key}}"> |
|
32 | <div class="message {{key}}"> | |
26 | {{message[key]}} |
|
33 | {{message[key]}} | |
27 | </div> |
|
34 | </div> | |
28 | {% endfor %} |
|
35 | {% endfor %} | |
29 | {% endif %} |
|
36 | {% endif %} | |
30 |
|
37 | |||
31 | <div/> |
|
38 | <div/> | |
32 |
|
39 | |||
33 | {% endblock %} |
|
40 | {% endblock %} | |
34 |
|
41 | |||
35 |
|
42 | |||
36 | {% block script %} |
|
43 | {% block script %} | |
37 |
|
44 | |||
38 | <script src="{{static_url("auth/js/loginmain.js") }}" type="text/javascript" charset="utf-8"></script> |
|
45 | <script src="{{static_url("auth/js/loginmain.js") }}" type="text/javascript" charset="utf-8"></script> | |
39 |
|
46 | |||
40 | {% endblock %} |
|
47 | {% endblock %} |
@@ -1,88 +1,90 b'' | |||||
1 | {% extends "page.html" %} |
|
1 | {% extends "page.html" %} | |
2 |
|
2 | |||
3 | {% block title %}IPython Dashboard{% endblock %} |
|
3 | {% block title %}IPython Dashboard{% endblock %} | |
4 |
|
4 | |||
5 |
|
5 | |||
6 | {% block stylesheet %} |
|
6 | {% block stylesheet %} | |
7 | {{super()}} |
|
7 | {{super()}} | |
8 | <link rel="stylesheet" href="{{ static_url("tree/css/override.css") }}" type="text/css" /> |
|
8 | <link rel="stylesheet" href="{{ static_url("tree/css/override.css") }}" type="text/css" /> | |
9 | {% endblock %} |
|
9 | {% endblock %} | |
10 |
|
10 | |||
11 | {% block params %} |
|
11 | {% block params %} | |
12 |
|
12 | |||
13 | data-project={{project}} |
|
13 | data-project={{project}} | |
14 | data-base-project-url={{base_project_url}} |
|
14 | data-base-project-url={{base_project_url}} | |
15 | data-base-kernel-url={{base_kernel_url}} |
|
15 | data-base-kernel-url={{base_kernel_url}} | |
16 | data-read-only={{read_only}} |
|
16 | data-read-only={{read_only}} | |
17 |
|
17 | |||
18 | {% endblock %} |
|
18 | {% endblock %} | |
19 |
|
19 | |||
20 |
|
20 | |||
21 | {% block site %} |
|
21 | {% block site %} | |
22 |
|
22 | |||
23 | <div id="ipython-main-app"> |
|
23 | <div id="ipython-main-app"> | |
24 |
|
24 | |||
25 | <div id="tabs"> |
|
25 | <div id="tabs" class="tabbable"> | |
26 | <ul> |
|
26 | <ul class="nav nav-tabs" id="tabs"> | |
27 | <li><a href="#tab1">Notebooks</a></li> |
|
27 | <li class="active"><a href="#tab1" data-toggle="tab">Notebooks</a></li> | |
28 | <li><a href="#tab2">Clusters</a></li> |
|
28 | <li><a href="#tab2" data-toggle="tab">Clusters</a></li> | |
29 | </ul> |
|
29 | </ul> | |
30 |
|
30 | |||
31 |
<div |
|
31 | <div class="tab-content"> | |
|
32 | <div id="tab1" class="tab-pane active"> | |||
32 | {% if logged_in or not read_only %} |
|
33 | {% if logged_in or not read_only %} | |
33 | <div id="notebook_toolbar"> |
|
34 | <div id="notebook_toolbar"> | |
34 | <form id='alternate_upload' class='alternate_upload' > |
|
35 | <form id='alternate_upload' class='alternate_upload' > | |
35 | <span id="drag_info" style="position:absolute" > |
|
36 | <span id="drag_info" style="position:absolute" > | |
36 | To import a notebook, drag the file onto the listing below or <strong>click here</strong>. |
|
37 | To import a notebook, drag the file onto the listing below or <strong>click here</strong>. | |
37 | </span> |
|
38 | </span> | |
38 | <input type="file" name="datafile" class="fileinput" multiple='multiple'> |
|
39 | <input type="file" name="datafile" class="fileinput" multiple='multiple'> | |
39 | </form> |
|
40 | </form> | |
40 | <span id="notebook_buttons"> |
|
41 | <span id="notebook_buttons"> | |
41 | <button id="refresh_notebook_list" title="Refresh notebook list">Refresh</button> |
|
42 | <button id="refresh_notebook_list" title="Refresh notebook list" class="btn">Refresh</button> | |
42 | <button id="new_notebook" title="Create new notebook">New Notebook</button> |
|
43 | <button id="new_notebook" title="Create new notebook" class="btn">New Notebook</button> | |
43 | </span> |
|
44 | </span> | |
44 | </div> |
|
45 | </div> | |
45 | {% endif %} |
|
46 | {% endif %} | |
46 |
|
47 | |||
47 | <div id="notebook_list"> |
|
48 | <div id="notebook_list"> | |
48 | <div id="project_name"> |
|
49 | <div id="project_name"> | |
49 | <ul class="breadcrumb"> |
|
50 | <ul class="breadcrumb"> | |
50 | {% for component in project_component %} |
|
51 | {% for component in project_component %} | |
51 | <li>{{component}} <span>/</span></li> |
|
52 | <li>{{component}} <span>/</span></li> | |
52 | {% endfor %} |
|
53 | {% endfor %} | |
53 | </ul> |
|
54 | </ul> | |
54 | </div> |
|
55 | </div> | |
55 | </div> |
|
56 | </div> | |
56 | </div> |
|
57 | </div> | |
57 | <div id="tab2"> |
|
58 | ||
|
59 | <div id="tab2" class="tab-pane"> | |||
58 |
|
60 | |||
59 | <div id="cluster_toolbar"> |
|
61 | <div id="cluster_toolbar"> | |
60 | <span id="cluster_list_info">IPython parallel computing clusters</span> |
|
62 | <span id="cluster_list_info">IPython parallel computing clusters</span> | |
61 |
|
63 | |||
62 | <span id="cluster_buttons"> |
|
64 | <span id="cluster_buttons"> | |
63 | <button id="refresh_cluster_list" title="Refresh cluster list">Refresh</button> |
|
65 | <button id="refresh_cluster_list" title="Refresh cluster list" class="btn">Refresh</button> | |
64 | </span> |
|
66 | </span> | |
65 | </div> |
|
67 | </div> | |
66 |
|
68 | |||
67 | <div id="cluster_list"> |
|
69 | <div id="cluster_list"> | |
68 | <div id="cluster_header"> |
|
70 | <div id="cluster_header"> | |
69 | <span>profile</span> |
|
71 | <span>profile</span> | |
70 | <span>action</span> |
|
72 | <span>action</span> | |
71 | <span title="Enter the number of engines to start or empty for default"># of engines</span> |
|
73 | <span title="Enter the number of engines to start or empty for default"># of engines</span> | |
72 | <span>status</span> |
|
74 | <span>status</span> | |
73 | </div> |
|
75 | </div> | |
74 | </div> |
|
76 | </div> | |
75 |
|
77 | </div> | ||
76 | </div> |
|
78 | </div> | |
77 | </div> |
|
79 | </div> | |
78 |
|
80 | |||
79 | </div> |
|
81 | </div> | |
80 |
|
82 | |||
81 | {% endblock %} |
|
83 | {% endblock %} | |
82 |
|
84 | |||
83 | {% block script %} |
|
85 | {% block script %} | |
84 | {{super()}} |
|
86 | {{super()}} | |
85 | <script src="{{static_url("tree/js/notebooklist.js") }}" type="text/javascript" charset="utf-8"></script> |
|
87 | <script src="{{static_url("tree/js/notebooklist.js") }}" type="text/javascript" charset="utf-8"></script> | |
86 | <script src="{{static_url("tree/js/clusterlist.js") }}" type="text/javascript" charset="utf-8"></script> |
|
88 | <script src="{{static_url("tree/js/clusterlist.js") }}" type="text/javascript" charset="utf-8"></script> | |
87 | <script src="{{static_url("tree/js/main.js") }}" type="text/javascript" charset="utf-8"></script> |
|
89 | <script src="{{static_url("tree/js/main.js") }}" type="text/javascript" charset="utf-8"></script> | |
88 | {% endblock %} |
|
90 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now