Mercurial > bugzilla-dashboard
diff index.html @ 77:00d2584cdd7b
Renamed main.html to index.html.
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Sun, 25 Apr 2010 19:47:53 -0700 |
parents | main.html@1a0a3abbba93 |
children | 4bb45ff5788a |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/index.html Sun Apr 25 19:47:53 2010 -0700 @@ -0,0 +1,151 @@ +<html> +<head> + <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> + <link rel="stylesheet" type="text/css" media="all" + href="css/jquery-ui.css" /> + <link rel="stylesheet" type="text/css" media="all" + href="css/main.css" /> + <title>Bugzilla Dashboard</title> +</head> +<body> +<div id="header"> + <h1 class="title">Bugzilla Dashboard</h1> + <ul class="menu hide-while-loading"> + <li data-dialog="login" + class="requires-no-login"><span>Log In</span></li> + <li data-dialog="login" + class="requires-no-auth-login"><span>Authenticate</span></li> + <li data-dialog="login" + class="requires-login"><span>Change User</span></li> + <li data-command="refresh-dashboard" + class="requires-login"><span>Refresh</span></li> + <li data-dialog="find-user" + class="requires-auth-login"><span>Find A User</span></li> + <li data-dialog="file-bug"><span>File A Bug</span></li> + </ul> +</div> +<div id="loading-screen" class="loading"> </div> +<div id="reports" class="requires-login hide-while-loading"> + <div class="container"> + <div id="code-reviews"><h2>Things To Review</h2></div> + <div id="assigned-bugs"><h2>Assigned Bugs</h2></div> + <div id="reported-bugs"><h2>Reported Bugs</h2></div> + <div id="cc-bugs"><h2>CC'd Bugs</h2></div> + <div id="fixed-bugs"><h2>Recently Fixed Bugs</h2></div> + </div> +</div> +<div id="login" class="dialog"> + <div class="content"> + <form id="login-form"> + <p>Enter a user's Bugzilla information below. If you don't + provide a password, you'll only be able to see the user's + public bugs, and you also won't be able to use some of this + page's awesome functionality.</p> + <table> + <tr> + <td>Username</td> + <td><input type="text" class="username" id="login-username"/></td> + </tr> + <tr> + <td>Password</td> + <td><input type="password" class="password" id="login-password"/></td> + </tr> + </table> + <br/> + <input type="submit" id="login-submit" value="View Dashboard"/> + </form> + </div> +</div> +<div id="file-bug" class="dialog"> + <div class="content"> + <form id="file-bug"> + <p>Just type in part of a product or component below, select from + the auto-complete list, and press enter. You'll then get sent to a + Bugzilla page where you can fill out a summary, description, and + more details for the bug.</p> + <table> + <tr> + <td>Category</td> + <td><input type="text" id="category"/></td> + </tr> + </table> + </form> + </div> +</div> +<div id="find-user" class="dialog"> + <div class="content"> + <form id="find-user-form"> + <p>Just type in part of a user name below. You can optionally + open a customized Bugzilla dashboard for the user, too.</p> + <table> + <tr> + <td>Name</td> + <td><input type="text" class="query" id="find-user-query"/></td> + </tr> + </table> + <br/> + <input type="submit" id="find-user-submit" + value="Show User Dashboard"/> + </form> + </div> +</div> +<div id="templates"> + <div class="more-link"><span class="number"></span> more…</div> + <div class="bug-tooltip"> + <div> + <span class="priority"></span> + <span class="severity"></span> + </div> + <div> + <span class="product"></span> + <span class="component"></span> + </div> + <div>Created <span class="age"></span></div> + </div> + <table class="bugs"> + <tr class="header"> + <th>Summary</th> + <th>Last Changed</th> + </tr> + <tr class="bug-row"> + <td class="summary"></td> + <td class="last-changed"></td> + </tr> + </table> +</div> +</body> +<!-- Base Scripts --> +<script src="js/jquery.js"></script> +<script src="js/jquery-ui.js"></script> +<script src="js/require.js"></script> +<script src="js/bugzilla.js"></script> +<script> +$(window).ready(function() { + var moduleScriptNames = [ + "app", + "date-utils", + "cache", + "xhr" + ]; + + var moduleScripts = []; + + moduleScriptNames.forEach(function(name) { + moduleScripts.push("js/modules/" + name + ".js"); + }); + + var customModuleExports = { + jQuery: jQuery, + bugzilla: Bugzilla, + window: window + }; + + Require.preload(document, moduleScripts, function whenLoaded() { + $("#loading-screen").hide(); + $(".hide-while-loading").show(); + var require = Require.build(Require.modules, customModuleExports); + require("app/ui").init(document); + }); +}); +</script> +</html>