Styling previous commit (pretty-render markdown files in blob mode) with 'readme...
authorAaron Taylor <ataylor@subgeniuskitty.com>
Fri, 18 Jun 2021 00:05:23 +0000 (17:05 -0700)
committerAaron Taylor <ataylor@subgeniuskitty.com>
Fri, 18 Jun 2021 00:05:23 +0000 (17:05 -0700)
gitweb.cgi

index a9eba00..f564d9d 100755 (executable)
@@ -7206,7 +7206,9 @@ sub git_blob {
                my $absolute_file_name = "$projectroot/$project";
                $absolute_file_name =~ s/\.git$//;
                $absolute_file_name = $absolute_file_name . $file_name;
                my $absolute_file_name = "$projectroot/$project";
                $absolute_file_name =~ s/\.git$//;
                $absolute_file_name = $absolute_file_name . $file_name;
+               print "<div class=\"readme\">";
                insert_markdown_file($absolute_file_name);
                insert_markdown_file($absolute_file_name);
+               print "</div>";
        } else {
                my $nr;
                while (my $line = <$fd>) {
        } else {
                my $nr;
                while (my $line = <$fd>) {