[Cdd-commits] r1133 - in cdd/trunk/webtools: . inc templates

CDD Subversion Commit noreply at alioth.debian.org
Wed Oct 8 19:04:50 UTC 2008


Author: tille
Date: Wed Oct  8 19:04:50 2008
New Revision: 1133

Modified:
   cdd/trunk/webtools/bugs.py
   cdd/trunk/webtools/inc/style.css
   cdd/trunk/webtools/templates/bugs.xhtml
Log:
Added bug stats


Modified: cdd/trunk/webtools/bugs.py
==============================================================================
--- cdd/trunk/webtools/bugs.py	(original)
+++ cdd/trunk/webtools/bugs.py	Wed Oct  8 19:04:50 2008
@@ -111,7 +111,6 @@
 		allbugs[task] = pkgbugs
 	else:
 		allbugs[task] = None
-	print >>stderr, "DEBUG: %s/%s: nbugs = %i, ndone = %i" % (task, pkgbug.pkgname, nbugs[task], ndone[task])
 
 for task in packages.keys():
 	data['task']    = task

Modified: cdd/trunk/webtools/inc/style.css
==============================================================================
--- cdd/trunk/webtools/inc/style.css	(original)
+++ cdd/trunk/webtools/inc/style.css	Wed Oct  8 19:04:50 2008
@@ -414,7 +414,7 @@
 	margin:0em;
 	padding:0.1em 0.25em;
 	font-weight:bold;
-	text-align:right;
+	text-align:left;
 	white-space:nowrap;
 }
 

Modified: cdd/trunk/webtools/templates/bugs.xhtml
==============================================================================
--- cdd/trunk/webtools/templates/bugs.xhtml	(original)
+++ cdd/trunk/webtools/templates/bugs.xhtml	Wed Oct  8 19:04:50 2008
@@ -22,6 +22,27 @@
 <table class="columns">
 <tr>
 	<td class="left">
+		<span class="section">Summary</span>
+		<div class="section">
+			<div class="sectionTop"/>
+			<div class="row">
+                            Bugs for package
+			    <strong>${tasks[task].metapkg.pkg}</strong>
+                        </div>
+			<div class="row">
+			    Total bugs:
+			    <strong>${nbugs+ndone}</strong>
+                        </div>
+			<div class="row">
+			    Open bugs:
+			    <strong>$nbugs</strong>
+                        </div>
+			<div class="row">
+			    Fixed bugs:
+			    <strong>$ndone</strong>
+                        </div>
+		</div>
+
 		<span class="section">${othertasks}</span>
 		<div class="section">
 			<div class="sectionTop"/>
@@ -39,15 +60,16 @@
 	<td class="main">
 		<div class="pageBody">
 
+<h1>Summary bugs page of ${tasks[task].metapkg.PrintedName.capitalize()} meta package</h1>
 <span py:choose="">
   <span py:when="nbugs > 0">
-			<h1>$projectname ${tasks[task].metapkg.PrintedName.capitalize()} bugs</h1>
+			<h2>Open bugs</h2>
 <table class="bugs">
   <py:for each="pkgbug in pkgbugs">
     <span py:if="pkgbug.nbugs > 0">
       <tr>
-	<td class="package">${pkgbug.pkgname} (${pkgbug.nbugs})</td>
-	<td colspan="2"></td>
+	<td colspan="2" class="package">${pkgbug.pkgname} (${pkgbug.nbugs})</td>
+	<td></td>
       </tr>
       <py:for each="bug in pkgbug.bugs">
 	 <tr>
@@ -60,12 +82,12 @@
   </py:for>
 </table>
 </span>
-<span py:otherwise=""><h1>$projectname ${tasks[task].metapkg.PrintedName.capitalize()} has no known open bugs</h1></span>
+<span py:otherwise=""><h2>$projectname ${tasks[task].metapkg.PrintedName.capitalize()} has no known open bugs</h2></span>
 </span>
 
 <span py:choose="">
 <span py:when="ndone > 0">
-<h1>$projectname ${tasks[task].metapkg.PrintedName.capitalize()} done bugs</h1>
+<h2>Fixed bugs</h2>
 <table class="bugs">
   <py:for each="pkgbug in pkgbugs">
     <span py:if="pkgbug.ndone > 0">



More information about the Cdd-commits mailing list