[Debtags-commits] [svn] r2199 - in web/trunk: . js
Enrico Zini
enrico at alioth.debian.org
Sun Dec 3 19:31:53 CET 2006
Author: enrico
Date: Sun Dec 3 19:31:53 2006
New Revision: 2199
Modified:
web/trunk/js/debtags.js
web/trunk/todo.html
Log:
Added maintainer view to TODO list page
Modified: web/trunk/js/debtags.js
==============================================================================
--- web/trunk/js/debtags.js (original)
+++ web/trunk/js/debtags.js Sun Dec 3 19:31:53 2006
@@ -479,6 +479,28 @@
);
}
+// Query the package list for a maintainer
+function fireMaintQuery(email, progressFunc, finalFunc, async)
+{
+ runRequest(QUERY_BASE + "/maint/" + email,
+ function(lines) {
+ var coll = new Collection();
+ var pkgs = new Packages();
+ coll.decode(lines);
+ pkgs.decode(lines);
+ progressFunc(coll, pkgs);
+ },
+ function(lines) {
+ var coll = new Collection();
+ var pkgs = new Packages();
+ coll.decode(lines);
+ pkgs.decode(lines);
+ finalFunc(coll, pkgs);
+ },
+ async
+ );
+}
+
function firePKGSQuery(ts, progressFunc, finalFunc, async)
{
var tags = new Array();
Modified: web/trunk/todo.html
==============================================================================
--- web/trunk/todo.html (original)
+++ web/trunk/todo.html Sun Dec 3 19:31:53 2006
@@ -102,6 +102,15 @@
fireUntExtraQuery("notuitoolkit", partialPackages, totalPackages, true);
}
+function startMaint()
+{
+ var email = document.maint.email.value;
+ if (email)
+ fireMaintQuery(email, partialPackages, totalPackages, true);
+ else
+ render("packages", "");
+}
+
function updateAll()
{
@@ -131,6 +140,8 @@
startNotRole();
} else if (curpanel == "notuit") {
startNotUit();
+ } else if (curpanel == "maint") {
+ startMaint();
}
}
@@ -169,6 +180,7 @@
<option value="fts">Full text search</option>
<option value="notrole">Missing role</option>
<option value="notuit">X apps without uitoolkit</option>
+ <option value="maint">Maintainer view</option>
</select></p>
</form>
@@ -199,6 +211,13 @@
</form>
</div>
+ <div id="maintpanel">
+ <form name="maint" onSubmit='updatePackages(); return false;'>
+ E-mail address: <input type="text" name="email" />
+ <input type="button" name="refresh" value="Refresh" onClick="updatePackages()" />
+ </form>
+ </div>
+
<div id="packages">
</div>
@@ -213,6 +232,8 @@
document.selTagPanel.selTagPanel.selectedIndex = 2;
else if (curpanel == "notuit")
document.selTagPanel.selTagPanel.selectedIndex = 3;
+ else if (curpanel == "maint")
+ document.selTagPanel.selTagPanel.selectedIndex = 4;
updateAll();
-->
</script>
More information about the Debtags-commits
mailing list