[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lintian: r1400 - in trunk: debian reporting reporting/templates



On Thu, Jun 19, 2008 at 02:41:14AM +0200, djpig@debian.org wrote:
> * reporting/templates/maintainer.tmpl:
>   + Add links to p.d.o and PTS for each source package.

How about moving those links to the same line as the package name and
version? Possible patch attached. It is supposed to look like this
screenshot:
  http://ettin.org/tmp/ldo-mockup/info-links.png
Index: lintian.css
===================================================================
--- lintian.css	(revision 1400)
+++ lintian.css	(working copy)
@@ -241,10 +241,26 @@
     list-style: square;
 }
 
+div.source-header {
+    width: 100%;
+    margin: 1.4em 0 14px 0;
+    padding-bottom: 6px;
+    border-bottom: 2px solid #AAA;
+}
+
+div.source-header p, div.source-header h2 {
+    display: inline;
+    border: none;
+}
+
 .info-links {
     margin-top: 0;
 }
 
+.info-links:before {
+    content: "– ";
+}
+
 /* Tag type */
 
 h2.tag {
Index: templates/maintainer.tmpl
===================================================================
--- templates/maintainer.tmpl	(revision 1400)
+++ templates/maintainer.tmpl	(working copy)
@@ -59,12 +59,15 @@
                 my $new_binary = $info->{package} ne $binary if $is_binary;
 
                 if ($first) {
-                    $OUT .= qq(  <h2 id="$source">);
+                    $OUT .= qq(  <div class="source-header">\n);
+                    $OUT .= qq(   <h2 id="$source">);
                     $OUT .= "$source ($version)";
                     $OUT .= " [Uploader]" if $upload;
                     $OUT .= "</h2>\n";
-                    $OUT .= qq(<p class="info-links"><a href="http://packages.debian.org/src:$source";>Info</a>\n);
-                    $OUT .= qq(  <a href="http://packages.qa.debian.org/$source";>PTS</a></p>);
+                    $OUT .= qq(   <p class="info-links">\n);
+                    $OUT .= qq(    <a href="http://packages.debian.org/src:$source";>Info</a>\n);
+                    $OUT .= qq(    <a href="http://packages.qa.debian.org/$source";>PTS</a>\n);
+                    $OUT .= qq(   </p>\n  </div>\n);
                     $OUT .= qq(  <ul class="report">\n) unless $is_binary;
                 }
 

Reply to: