Quantcast

Bug#857240: debbugs: readability of bug block lists

Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Bug#857240: debbugs: readability of bug block lists

Clint Adams-6
Package: debbugs
Version: 2.4.1
Severity: wishlist

I find the "Fix blocked by" lists difficult to read.  Please enhance
the bugreport.cgi output readability.

As a sugestion, here is a completely-untested patch:

diff -ur debbugs-2.4.2~exp1.orig/templates/en_US/cgi/bugreport_buginfo.tmpl debbugs-2.4.2~exp1/templates/en_US/cgi/bugreport_buginfo.tmpl
--- debbugs-2.4.2~exp1.orig/templates/en_US/cgi/bugreport_buginfo.tmpl 2010-08-06 02:32:07.000000000 -0400
+++ debbugs-2.4.2~exp1/templates/en_US/cgi/bugreport_buginfo.tmpl 2017-03-08 22:06:26.376593038 -0500
@@ -41,16 +41,16 @@
 }
 { my $output = '';
   if (@{$status{blockedby_array}}) {
-     $output .= q(<p>Fix blocked by ).
-        join(q(, ),
-         map {bug_links(bug=>$_->{bug_num}).q(: ).html_escape($_->{subject})}
-         @{$status{blockedby_array}}).q(</p>)
+     $output .= q(<p>Fix blocked by <ul>).
+        join("\n",
+         map {q(<li>).bug_links(bug=>$_->{bug_num}).q(: ).html_escape($_->{subject}).q(</li>)}
+         @{$status{blockedby_array}}).q(</ul></p>)
   }
   if (@{$status{blocks_array}}) {
-     $output .= q(<p>Blocking fix for ).
-        join(q(, ),
-         map {bug_links(bug=>$_->{bug_num}).q(: ).html_escape($_->{subject})}
-         @{$status{blocks_array}}).q(</p>)
+     $output .= q(<p>Blocking fix for <ul>).
+        join("\n",
+         map {q(<li>).bug_links(bug=>$_->{bug_num}).q(: ).html_escape($_->{subject}).q(</li>)}
+         @{$status{blocks_array}}).q(</ul></p>)
   }
   $output;
 }

Loading...