Mercurial > bugzilla-dashboard
annotate main.html @ 51:3af7cd6ae638
changed menu items to use data-dialog attr instead of title, which sets tooltips.
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Sat, 24 Apr 2010 21:30:58 -0700 |
parents | b86cf631e753 |
children | 8820100ae903 |
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" |
3af7cd6ae638
changed menu items to use data-dialog attr instead of title, which sets tooltips.
Atul Varma <avarma@mozilla.com>
parents:
48
diff
changeset
|
13 class="requires-no-login"><span>Log In</span></li> |
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" |
48
b86cf631e753
turned menu into a fixed overlay
Atul Varma <avarma@mozilla.com>
parents:
47
diff
changeset
|
15 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
|
16 <li data-dialog="find-user" |
48
b86cf631e753
turned menu into a fixed overlay
Atul Varma <avarma@mozilla.com>
parents:
47
diff
changeset
|
17 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
|
18 <li data-dialog="file-bug"><span>File A Bug</span></li> |
37 | 19 </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
|
20 </div> |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
21 <div id="loading-screen" class="loading"> </div> |
47
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
22 <div id="reports" class="requires-login hide-while-loading"> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
23 <div class="container"> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
24 <div id="code-reviews"><h2>My Things To Review</h2></div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
25 <div id="assigned-bugs"><h2>My Assigned Bugs</h2></div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
26 <div id="reported-bugs"><h2>My Reported Bugs</h2></div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
27 <div id="cc-bugs"><h2>My CC'd Bugs</h2></div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
28 <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
|
29 </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
|
30 </div> |
37 | 31 <div id="login" class="dialog"> |
38 | 32 <div class="content"> |
37 | 33 <form id="login-form"> |
34 <p>Enter your Bugzilla login information below.</p> | |
35 <p>Your browser sends these credentials directly to | |
36 Bugzilla over a secure connection—no third parties can access | |
37 them, including the server this page is hosted on.</p> | |
38 <table> | |
39 <tr> | |
40 <td>Your Username</td> | |
42 | 41 <td><input type="text" class="username" id="login-username"/></td> |
37 | 42 </tr> |
43 <tr> | |
44 <td>Your Password</td> | |
42 | 45 <td><input type="password" class"password" id="login-password"/></td> |
37 | 46 </tr> |
47 </table> | |
48 <br/> | |
42 | 49 <input type="submit" id="login-submit" value="View Dashboard"/> |
37 | 50 </form> |
38 | 51 </div> |
37 | 52 </div> |
47
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
53 <div id="templates"> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
54 <div class="bug-tooltip"> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
55 <div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
56 <span class="priority"></span> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
57 <span class="severity"></span> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
58 </div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
59 <div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
60 <span class="product"></span> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
61 <span class="component"></span> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
62 </div> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
63 <div>Created <span class="age"></span></div> |
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 <table class="bugs"> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
66 <tr class="header"> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
67 <th>Summary</th> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
68 <th>Last Changed</th> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
69 </tr> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
70 <tr class="bug-row"> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
71 <td class="summary"></td> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
72 <td class="last-changed"></td> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
73 </tr> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
74 </table> |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
75 </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
|
76 </body> |
37 | 77 <!-- 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
|
78 <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
|
79 <script src="js/require.js"></script> |
47
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
80 <script src="js/bugzilla.js"></script> |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
81 <script> |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
82 $(window).ready(function() { |
47
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
83 var moduleScriptNames = [ |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
84 "app", |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
85 "date-utils", |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
86 "cache" |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
87 ]; |
37 | 88 |
47
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
89 var moduleScripts = []; |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
90 |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
91 moduleScriptNames.forEach(function(name) { |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
92 moduleScripts.push("js/modules/" + name + ".js"); |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
93 }); |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
94 |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
95 var customModuleExports = { |
47
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
96 jQuery: jQuery, |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
97 bugzilla: Bugzilla, |
0b71df72ebe1
integrated dashboard into main.html.
Atul Varma <avarma@mozilla.com>
parents:
45
diff
changeset
|
98 window: window |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
99 }; |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
100 |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
101 Require.preload(document, moduleScripts, function whenLoaded() { |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
102 $("#loading-screen").hide(); |
45
72d01c7d5258
added hide-while-loading class
Atul Varma <avarma@mozilla.com>
parents:
44
diff
changeset
|
103 $(".hide-while-loading").show(); |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
104 var require = Require.build(Require.modules, customModuleExports); |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
105 require("app/ui").init(document); |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
106 }); |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
107 }); |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
108 </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
|
109 </html> |