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

CDD Subversion Commit noreply at alioth.debian.org
Sat Nov 1 18:27:37 UTC 2008


Author: tille
Date: Sat Nov  1 18:27:37 2008
New Revision: 1190

Modified:
   cdd/trunk/webtools/bugs.py
   cdd/trunk/webtools/inc/style.css
   cdd/trunk/webtools/templates/bugs.xhtml
Log:
Weighting and fix in template


Modified: cdd/trunk/webtools/bugs.py
==============================================================================
--- cdd/trunk/webtools/bugs.py	(original)
+++ cdd/trunk/webtools/bugs.py	Sat Nov  1 18:27:37 2008
@@ -255,6 +255,7 @@
 		weightedsev[task] = _('Looking into bugs of this metapackage is recommended')
 	else:
 		weightedsev[task] = _('Immediately looking into bugs of the dependencies of this metapackage is advised')
+	weightedsev[task] += ' (%i)' % wsev
 
 data['headings'] = {DEPENDENT : 'Open bugs in dependent packages',
                     SUGGESTED : 'Open bugs in suggested packages',

Modified: cdd/trunk/webtools/inc/style.css
==============================================================================
--- cdd/trunk/webtools/inc/style.css	(original)
+++ cdd/trunk/webtools/inc/style.css	Sat Nov  1 18:27:37 2008
@@ -725,3 +725,15 @@
 	font-style:italic;
 	text-align: right;
 }
+
+div.severitysummary {
+	font:130% sans-serif;
+	padding:0em;
+	margin:0.75em 0em;
+}
+
+div.severitylist {
+	font:110% sans-serif;
+	padding:0em;
+	margin:0.75em 0em;
+}

Modified: cdd/trunk/webtools/templates/bugs.xhtml
==============================================================================
--- cdd/trunk/webtools/templates/bugs.xhtml	(original)
+++ cdd/trunk/webtools/templates/bugs.xhtml	Sat Nov  1 18:27:37 2008
@@ -71,9 +71,9 @@
       <span py:choose="">
 	<span py:when="buglist[cat].pkgbugs != []">
 	  <h2>${headings[cat]}</h2>
-            <span py:if="severitysummary[cat] != ''">
+            <div class="severitylist" py:if="severitysummary[cat] != ''">
                 ${severitysummary[cat]}
-	    </span>
+	    </div>
 	  <table class="${cssclass[cat]}">
 	    <py:for each="pkgbug in buglist[cat].pkgbugs">
 	      <span py:if="pkgbug.nbugs > 0">
@@ -92,9 +92,7 @@
 	    </py:for>
 	  </table>
 	</span>
-	<span py:otherwise="">${type(pkgbugs)}
-                              empty list of bugs
-                              ${str(pkgbugs)}
+	<span py:otherwise="">No bugs in category ${cat}
 	</span>
       </span>
     </py:for>



More information about the Cdd-commits mailing list