]> git.deb.at Git - deb/packages.git/blobdiff - lib/Packages/CGI.pm
* complete virtual package support
[deb/packages.git] / lib / Packages / CGI.pm
index cac499fbc45658ddcf32663f9b20fc46592b2d01..d9aceeb35eafd2dd627e503774b65caa60e0578b 100644 (file)
@@ -30,7 +30,7 @@ sub debug {
 sub msg {
     push @msgs, $_[0];
 }
-sub notes {
+sub note {
     push @notes, [ @_ ];
 }
 sub print_errors {
@@ -66,15 +66,14 @@ sub print_msgs {
 sub print_notes {
     foreach (@notes) {
        my ( $title, $note ) = @$_;
-       my $str = "";
 
+       print '<div style="border: solid thin black; background-color: #ccf">';
        if ($note) {
-           $str .= "<h2 class=\"pred\">$title</h2>";
+           print "<h2 class=\"pred\">$title</h2>";
        } else {
            $note = $title;
        }
-       $str .= "<p>$note</p>";
-       return $str;
+       print "<p>$note</p></div>";
     }
 }