X-Git-Url: http://git.subgeniuskitty.com/gitweb-sgk/.git/blobdiff_plain/66411096cff1065faa9ce0bb418e48f644ff33ad..f3a3170bc7ff3ed7397871f5dee0a506b334826c:/gitweb.cgi
diff --git a/gitweb.cgi b/gitweb.cgi
index 88da59b..a9eba00 100755
--- a/gitweb.cgi
+++ b/gitweb.cgi
@@ -118,10 +118,8 @@ our $favicon = "static/git-favicon.png";
our $javascript = "static/gitweb.js";
# URI and label (title) of GIT logo link
-#our $logo_url = "http://www.kernel.org/pub/software/scm/git/docs/";
-#our $logo_label = "git documentation";
-our $logo_url = "http://git-scm.com/";
-our $logo_label = "git homepage";
+our $logo_url = "http://subgeniuskitty.com/";
+our $logo_label = "SGK Homepage";
# source of projects list
our $projects_list = "";
@@ -6413,9 +6411,9 @@ sub git_search_files {
$ltext = esc_html($ltext, -nbsp=>1);
}
print "
" .
- $cgi->a({-href => $file_href.'#l'.$lno,
- -class => "linenr"}, sprintf('%4i', $lno)) .
- ' ' . $ltext . "
\n";
+ "" .
+ "" . $ltext . "\n";
}
}
if ($lastfile) {
@@ -6619,18 +6617,18 @@ sub git_summary {
my $basedir = '';
print "\n" .
- "description | " . esc_html($descr) . " |
\n";
+ "Description | " . esc_html($descr) . " |
\n";
if ($owner and not $omit_owner) {
- print "owner | " . esc_html($owner) . " |
\n";
+ print "Owner | " . esc_html($owner) . " |
\n";
}
if (defined $cd{'rfc2822'}) {
- print "last change | " .
+ print "
Last Change | " .
"".format_timestamp_html(\%cd)." |
\n";
}
# use per project git URL list in $projectroot/$project/cloneurl
# or make project git URL from git base URL and project name
- my $url_tag = "clone URL";
+ my $url_tag = "Clone URL";
my @url_list = git_get_project_url_list($project);
@url_list = map { "$_/$project" } @git_base_url_list unless @url_list;
foreach my $git_url (@url_list) {
@@ -7204,13 +7202,18 @@ sub git_blob {
href(action=>"blob_plain", hash=>$hash,
hash_base=>$hash_base, file_name=>$file_name) .
qq!" />\n!;
+ } elsif ($file_name =~ /\.md$/) {
+ my $absolute_file_name = "$projectroot/$project";
+ $absolute_file_name =~ s/\.git$//;
+ $absolute_file_name = $absolute_file_name . $file_name;
+ insert_markdown_file($absolute_file_name);
} else {
my $nr;
while (my $line = <$fd>) {
chomp $line;
$nr++;
$line = untabify($line);
- printf qq!\n!,
+ printf qq!\n!,
$nr, esc_attr(href(-replay => 1)), $nr, $nr,
$highlight ? sanitize($line) : esc_html($line, -nbsp=>1);
}