Mercurial > bugzilla-dashboard
annotate main.html @ 56:4728c2db6fd6
changed 'Log In' to 'Authenticate' if user is logged in but unauthenticated.
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Sun, 25 Apr 2010 00:06:17 -0700 |
parents | 1199b970c68b |
children | 2bd4a44f1182 |
rev | line source |
---|---|
36
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
1 <html> |
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
2 <head> |
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
3 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
4 <link rel="stylesheet" type="text/css" media="all" |
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
5 href="css/main.css" /> |
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
6 <title>Bugzilla Dashboard</title> |
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
7 </head> |
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
8 <body> |
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
9 <div id="header"> |
38 | 10 <h1 class="title">Bugzilla Dashboard</h1> |
45
72d01c7d5258
added hide-while-loading class
Atul Varma <avarma@mozilla.com>
parents:
44
diff
changeset
|
11 <ul class="menu hide-while-loading"> |
51
3af7cd6ae638
changed menu items to use data-dialog attr instead of title, which sets tooltips.
Atul Varma <avarma@mozilla.com>
parents:
48
diff
changeset
|
12 <li data-dialog="login" |
56
4728c2db6fd6
changed 'Log In' to 'Authenticate' if user is logged in but unauthenticated.
Atul Varma <avarma@mozilla.com>
parents:
54
diff
changeset
|
13 class="requires-no-login"><span>Log In</span></li> |
51
3af7cd6ae638
changed menu items to use data-dialog attr instead of title, which sets tooltips.
Atul Varma <avarma@mozilla.com>
parents:
48
diff
changeset
|
14 <li data-dialog="login" |
56
4728c2db6fd6
changed 'Log In' to 'Authenticate' if user is logged in but unauthenticated.
Atul Varma <avarma@mozilla.com>
parents:
54
diff
changeset
|
15 class="requires-no-auth-login"><span>Authenticate</span></li> |
4728c2db6fd6
changed 'Log In' to 'Authenticate' if user is logged in but unauthenticated.
Atul Varma <avarma@mozilla.com>
parents:
54
diff
changeset
|
16 <li data-dialog="login" |
48
b86cf631e753
turned menu into a fixed overlay
Atul Varma <avarma@mozilla.com>
parents:
47
diff
changeset
|
17 class="requires-login"><span>Change User</span></li> |
51
3af7cd6ae638
changed menu items to use data-dialog attr instead of title, which sets tooltips.
Atul Varma <avarma@mozilla.com>
parents:
48
diff
changeset
|
18 <li data-dialog="find-user" |
48
b86cf631e753
turned menu into a fixed overlay
Atul Varma <avarma@mozilla.com>
parents:
47
diff
changeset
|
19 class="requires-auth-login"><span>Find A User</span></li> |
51
3af7cd6ae638
changed menu items to use data-dialog attr instead of title, which sets tooltips.
Atul Varma <avarma@mozilla.com>
parents:
48
diff
changeset
|
20 <li data-dialog="file-bug"><span>File A Bug</span></li> |
37 | 21 </ul> |
36
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
22 </div> |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
23 <div id="loading-screen" class="loading"> </div> |
47
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
24 <div id="reports" class="requires-login hide-while-loading"> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
25 <div class="container"> |
52
8820100ae903
Removed word 'my' from column headers
Atul Varma <avarma@mozilla.com>
parents:
51
diff
changeset
|
26 <div id="code-reviews"><h2>Things To Review</h2></div> |
8820100ae903
Removed word 'my' from column headers
Atul Varma <avarma@mozilla.com>
parents:
51
diff
changeset
|
27 <div id="assigned-bugs"><h2>Assigned Bugs</h2></div> |
8820100ae903
Removed word 'my' from column headers
Atul Varma <avarma@mozilla.com>
parents:
51
diff
changeset
|
28 <div id="reported-bugs"><h2>Reported Bugs</h2></div> |
8820100ae903
Removed word 'my' from column headers
Atul Varma <avarma@mozilla.com>
parents:
51
diff
changeset
|
29 <div id="cc-bugs"><h2>CC'd Bugs</h2></div> |
47
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
30 <div id="fixed-bugs"><h2>Recently Fixed Bugs</h2></div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
31 </div> |
36
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
32 </div> |
37 | 33 <div id="login" class="dialog"> |
38 | 34 <div class="content"> |
37 | 35 <form id="login-form"> |
36 <p>Enter your Bugzilla login information below.</p> | |
37 <p>Your browser sends these credentials directly to | |
38 Bugzilla over a secure connection—no third parties can access | |
39 them, including the server this page is hosted on.</p> | |
40 <table> | |
41 <tr> | |
42 <td>Your Username</td> | |
42 | 43 <td><input type="text" class="username" id="login-username"/></td> |
37 | 44 </tr> |
45 <tr> | |
46 <td>Your Password</td> | |
54
1199b970c68b
present 'Log In' when user isn't authenticated
Atul Varma <avarma@mozilla.com>
parents:
52
diff
changeset
|
47 <td><input type="password" class="password" id="login-password"/></td> |
37 | 48 </tr> |
49 </table> | |
50 <br/> | |
42 | 51 <input type="submit" id="login-submit" value="View Dashboard"/> |
37 | 52 </form> |
38 | 53 </div> |
37 | 54 </div> |
47
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
55 <div id="templates"> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
56 <div class="bug-tooltip"> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
57 <div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
58 <span class="priority"></span> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
59 <span class="severity"></span> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
60 </div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
61 <div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
62 <span class="product"></span> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
63 <span class="component"></span> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
64 </div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
65 <div>Created <span class="age"></span></div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
66 </div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
67 <table class="bugs"> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
68 <tr class="header"> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
69 <th>Summary</th> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
70 <th>Last Changed</th> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
71 </tr> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
72 <tr class="bug-row"> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
73 <td class="summary"></td> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
74 <td class="last-changed"></td> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
75 </tr> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
76 </table> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
77 </div> |
36
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
78 </body> |
37 | 79 <!-- Base Scripts --> |
36
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
80 <script src="js/jquery.js"></script> |
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
81 <script src="js/require.js"></script> |
47
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
82 <script src="js/bugzilla.js"></script> |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
83 <script> |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
84 $(window).ready(function() { |
47
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
85 var moduleScriptNames = [ |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
86 "app", |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
87 "date-utils", |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
88 "cache" |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
89 ]; |
37 | 90 |
47
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
91 var moduleScripts = []; |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
92 |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
93 moduleScriptNames.forEach(function(name) { |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
94 moduleScripts.push("js/modules/" + name + ".js"); |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
95 }); |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
96 |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
97 var customModuleExports = { |
47
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
98 jQuery: jQuery, |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
99 bugzilla: Bugzilla, |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
100 window: window |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
101 }; |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
102 |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
103 Require.preload(document, moduleScripts, function whenLoaded() { |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
104 $("#loading-screen").hide(); |
45
72d01c7d5258
added hide-while-loading class
Atul Varma <avarma@mozilla.com>
parents:
44
diff
changeset
|
105 $(".hide-while-loading").show(); |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
106 var require = Require.build(Require.modules, customModuleExports); |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
107 require("app/ui").init(document); |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
108 }); |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
109 }); |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
110 </script> |
36
eb2cc1f89869
Added a test suite, basic CommonJS module loader, and a new main.html file that will be a unified UI to all three pages (dashboard, user-finder, bug-filer).
Atul Varma <avarma@mozilla.com>
parents:
diff
changeset
|
111 </html> |