forked from toolness/bugzilla-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
185 lines (178 loc) · 5.33 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<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="repair"><span>Repair</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>Bugzilla Username</td>
<td><input type="text" class="username" id="login-username"/></td>
</tr>
<tr>
<td>Bugzilla 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>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" class="category" id="file-bug-category"/></td>
</tr>
</table>
</form>
</div>
</div>
<div id="repair" class="dialog">
<div class="content">
<form id="repair-form">
<p>If this page isn't working as you expect, enter the
text “repair my dashboard” below and
press enter. Hopefully that will fix things.</p>
<br/>
<input type="text" class="phrase" id="repair-phrase"/>
</form>
<div class="result"></div>
</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="errors"></div>
<div id="templates">
<div class="errors">
<div class="bugzilla-api-error">I had trouble talking to Bugzilla.
Perhaps you entered the wrong username/password, or I
messed up.</div>
<div class="unknown-error">An unknown error occurred.</div>
</div>
<div class="repair-success">Done. Try reloading this page and see
if your problem is fixed.</div>
<div class="repair-failure">Hey, that wasn't the right text.</div>
<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/require.js"></script>
<script>
$(window).ready(function() {
var moduleScriptNames = [
"app",
"date-utils",
"cache",
"xhr"
];
var scripts = [
"js/jquery-ui.js",
"js/bugzilla.js"
];
moduleScriptNames.forEach(function(name) {
scripts.push("js/modules/" + name + ".js");
});
if (!('JSON' in window))
scripts.push("js/json2.js");
Require.preload(document, scripts, function whenLoaded() {
$("#loading-screen").hide();
$(".hide-while-loading").show();
var options = {
jQuery: jQuery,
Bugzilla: Bugzilla,
window: window
};
if (document.location.search == "?testing=1") {
window.parent.onDashboardLoaded(window, options);
return;
}
var moduleExports = {};
var require = Require.build(Require.modules, moduleExports);
require("app/loader").init(moduleExports, options);
});
});
</script>
</html>