[Debtags-commits] [svn] r1511 - central-database/branches/alioth/webfrontend

Enrico Zini enrico at costa.debian.org
Fri Nov 18 18:19:12 UTC 2005


Author: enrico
Date: Fri Nov 18 18:19:11 2005
New Revision: 1511

Modified:
   central-database/branches/alioth/webfrontend/edittemplate.html
   central-database/branches/alioth/webfrontend/main.css
Log:
Current tags are now also JS-generated

Modified: central-database/branches/alioth/webfrontend/edittemplate.html
==============================================================================
--- central-database/branches/alioth/webfrontend/edittemplate.html	(original)
+++ central-database/branches/alioth/webfrontend/edittemplate.html	Fri Nov 18 18:19:11 2005
@@ -113,11 +113,17 @@
   <tmpl_if name="COUNT_TAGS">
     <p><b>Currently attached tags:</b>
     <ul>
-      <tmpl_loop name="FACETS">
-        <tmpl_loop name="HASTAGS">
-          <li><tmpl_var name="SDESC"> <a href='<tmpl_var name="REMURL">'>[remove]</a></li>
-        </tmpl_loop>
-      </tmpl_loop>
+      <script type="text/javascript">
+  	for (i = 0; i < facetsSorted.length; i++)
+	{
+		var f = facetsSorted[i];
+		for (j = 0; j < facets[f.name].hasTagsSorted.length; j++)
+		{
+			var t = facets[f.name].hasTagsSorted[j];
+			document.write("\t<li>"+t.sdesc+" <a class='button' href='<tmpl_var name='REMURL'>'>[remove]</a></li>\n");
+		}
+	}
+      </script>
     </ul>
     </p>
   <tmpl_else>
@@ -134,8 +140,8 @@
 		var f = facetsSorted[i];
 		document.write("<div class='editfacet' id='editfacet-"+f.name+"'>\n");
     		document.write("\t<div class='facetbuttons'>\n");
-		document.write("\t\t<a onclick='hideFacet(\""+f.name+"\")'>[done with this]</a><br />\n");
-      		document.write("\t\t<a href='<tmpl_var name="DELURL">'>[does not apply]</a>\n");
+		document.write("\t\t<span class='button' onclick='hideFacet(\""+f.name+"\")'>[done with this]</span><br />\n");
+      		document.write("\t\t<a class='button' href='<tmpl_var name="DELURL">'>[does not apply]</a>\n");
 		document.write("\t</div>\n");
 		document.write("\t<div class='intro'>\n");
 		document.write("\t\t<p>\n");
@@ -151,7 +157,7 @@
 			document.write("\t<li>\n");
 			document.write("\t\t<b>"+t.sdesc+"</b>\n");
 			// document.write("\t\t<tmpl_if name="NPROB">(<tmpl_var name="NPROB">%)</tmpl_if>");
-			document.write("\t\t<a href='<tmpl_var name='REMURL'>'>[remove]</a>\n");
+			document.write("\t\t<a class='button' ref='<tmpl_var name='REMURL'>'>[remove]</a>\n");
 			document.write("\t</li>\n");
 		}
 		for (j = 0; j < facets[f.name].newTagsSorted.length; j++)
@@ -160,7 +166,7 @@
 			document.write("\t<li>\n");
 			document.write("\t\t"+t.sdesc+"\n");
 			// document.write("\t\t<tmpl_if name="NPROB">(<tmpl_var name="NPROB">%)</tmpl_if>");
-			document.write("\t\t<a href='<tmpl_var name='ADDURL'>'>[add]</a>\n");
+			document.write("\t\t<a class='button' ref='<tmpl_var name='ADDURL'>'>[add]</a>\n");
 			document.write("\t</li>\n");
 		}
     		document.write("\t</ul>\n");

Modified: central-database/branches/alioth/webfrontend/main.css
==============================================================================
--- central-database/branches/alioth/webfrontend/main.css	(original)
+++ central-database/branches/alioth/webfrontend/main.css	Fri Nov 18 18:19:11 2005
@@ -108,8 +108,9 @@
 
 .button {
 color: brown;
-text-decoration: none;
-font-size: small;
+text-decoration: underline;
+font-size: x-small;
+cursor: pointer;
 }
 
 /* for package browser */



More information about the Debtags-commits mailing list