Mercurial > bugzilla-dashboard
annotate main.html @ 45:72d01c7d5258
added hide-while-loading class
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Sat, 24 Apr 2010 19:10:58 -0700 |
parents | d3ed74176b4d |
children | 0b71df72ebe1 |
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"> |
38 | 12 <li title="login" class="requires-no-login">Log In</span> |
37 | 13 <li title="login" class="requires-login">Change User</span> |
14 <li title="find-user" class="requires-auth-login">Find A User</span> | |
15 <li title="file-bug">File A Bug</span> | |
16 </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
|
17 </div> |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
18 <div id="loading-screen" class="loading"> </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
|
19 <div id="reports"> |
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> |
37 | 21 <div id="login" class="dialog"> |
38 | 22 <div class="content"> |
37 | 23 <form id="login-form"> |
24 <p>Enter your Bugzilla login information below.</p> | |
25 <p>Your browser sends these credentials directly to | |
26 Bugzilla over a secure connection—no third parties can access | |
27 them, including the server this page is hosted on.</p> | |
28 <table> | |
29 <tr> | |
30 <td>Your Username</td> | |
42 | 31 <td><input type="text" class="username" id="login-username"/></td> |
37 | 32 </tr> |
33 <tr> | |
34 <td>Your Password</td> | |
42 | 35 <td><input type="password" class"password" id="login-password"/></td> |
37 | 36 </tr> |
37 </table> | |
38 <br/> | |
42 | 39 <input type="submit" id="login-submit" value="View Dashboard"/> |
37 | 40 </form> |
38 | 41 </div> |
37 | 42 </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
|
43 </body> |
37 | 44 <!-- 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
|
45 <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
|
46 <script src="js/require.js"></script> |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
47 <script> |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
48 $(window).ready(function() { |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
49 var moduleScripts = [ |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
50 "js/modules/app.js" |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
51 ]; |
37 | 52 |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
53 var customModuleExports = { |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
54 jQuery: jQuery |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
55 }; |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
56 |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
57 Require.preload(document, moduleScripts, function whenLoaded() { |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
58 $("#loading-screen").hide(); |
45
72d01c7d5258
added hide-while-loading class
Atul Varma <avarma@mozilla.com>
parents:
44
diff
changeset
|
59 $(".hide-while-loading").show(); |
44
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
60 var require = Require.build(Require.modules, customModuleExports); |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
61 require("app/ui").init(document); |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
62 }); |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
63 }); |
d3ed74176b4d
added module preloading and loading screen
Atul Varma <avarma@mozilla.com>
parents:
42
diff
changeset
|
64 </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
|
65 </html> |