[Debtags-commits] [svn] r2201 - web/trunk

Enrico Zini enrico at alioth.debian.org
Sun Dec 3 19:53:01 CET 2006


Author: enrico
Date: Sun Dec  3 19:53:00 2006
New Revision: 2201

Modified:
   web/trunk/main.css
   web/trunk/todo.html
Log:
Highlight not-yet-tagged tags when not in nyt view

Modified: web/trunk/main.css
==============================================================================
--- web/trunk/main.css	(original)
+++ web/trunk/main.css	Sun Dec  3 19:53:00 2006
@@ -30,6 +30,8 @@
 	text-align: justify;
 }
 
+span.nyt { color: red; }
+
 p.close { border-top: thin solid brown;
 	color: brown;
 	font-size: small;

Modified: web/trunk/todo.html
==============================================================================
--- web/trunk/todo.html	(original)
+++ web/trunk/todo.html	Sun Dec  3 19:53:00 2006
@@ -19,7 +19,10 @@
 	b += " -- ";
 	b += desc;
 	b += "<div class='pkgtags'>";
-	b += tags.toString();
+	if (curpanel != "nyt")
+		b += tags.toString().replace(/(special::not-yet-tagged(::.)?)/g, "<span class='nyt'>$1</span>");
+	else
+		b += tags.toString();
 	b += "</div>";
 	return b;
 }
@@ -118,7 +121,7 @@
 function updateVisibility()
 {
 	var sel = document.selTagPanel.selTagPanel;
-	var curpanel = sel.options[sel.selectedIndex].value;
+	curpanel = sel.options[sel.selectedIndex].value;
 	setVisible("ftspanel", curpanel == "fts");
 	setVisible("nytpanel", curpanel == "nyt");
 	setVisible("notrolepanel", curpanel == "notrole");
@@ -130,7 +133,7 @@
 function updatePackages()
 {
 	var sel = document.selTagPanel.selTagPanel;
-	var curpanel = sel.options[sel.selectedIndex].value;
+	curpanel = sel.options[sel.selectedIndex].value;
 	if (curpanel == "fts") {
 		startFTS();
 	} else if (curpanel == "nyt") {



More information about the Debtags-commits mailing list