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