]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Put project README in div.readme, fix its padding
authorJakub Narebski <redacted>
Mon, 19 Nov 2007 13:16:12 +0000 (14:16 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:12 +0000 (00:07 -0400)
Put (optional) projects README on "summary" page in <div> element
using "readme" class.  This allow to style it using CSS.

Add padding to project's README to make it line out with the rest
of the page.

Signed-off-by: Jakub Narebski <redacted>
gitweb.css
gitweb.perl

index 5e95433ff6ee7a85050d705c1f4052cce4719d086efa18f9088066f7267623b6..b4050b7f1ca76ee7b60febcb5b8ea15444ddaaa52da4e5db6ee5b45c711c4e17 100644 (file)
@@ -85,6 +85,10 @@ div.title, a.title {
        color: #000000;
 }
 
+div.readme {
+       padding: 8px;
+}
+
 a.title:hover {
        background-color: #d9d8d1;
 }
index a87959ed9dac2039ab5f95830682d9149014c25a612dfe4cd5b8a90de95d2387..566004a3d85203128c02e633d8013c4b0fec07a16dfd6600447115518b16a78e 100755 (executable)
@@ -3913,8 +3913,10 @@ sub git_summary {
 
        if (-s "$projectroot/$project/README.html") {
                if (open my $fd, "$projectroot/$project/README.html") {
-                       print "<div class=\"title\">readme</div>\n";
+                       print "<div class=\"title\">readme</div>\n" .
+                             "<div class=\"readme\">\n";
                        print $_ while (<$fd>);
+                       print "\n</div>\n"; # class="readme"
                        close $fd;
                }
        }
This page took 0.274756 seconds and 4 git commands to generate.