]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Update and improve gitweb/README file
[Gitweb] / gitweb.perl
index a87959ed9dac2039ab5f95830682d9149014c25a612dfe4cd5b8a90de95d2387..68795d0360e26a70630fae9126016336b456c03ed60face1c484044bee46ba01 100755 (executable)
@@ -3787,6 +3787,8 @@ sub git_search_grep_body {
                      "<td class=\"link\">" .
                      $cgi->a({-href => href(action=>"commit", hash=>$co{'id'})}, "commit") .
                      " | " .
+                     $cgi->a({-href => href(action=>"commitdiff", hash=>$co{'id'})}, "commitdiff") .
+                     " | " .
                      $cgi->a({-href => href(action=>"tree", hash=>$co{'tree'}, hash_base=>$co{'id'})}, "tree");
                print "</td>\n" .
                      "</tr>\n";
@@ -3913,8 +3915,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.195348 seconds and 4 git commands to generate.