From: Will Budic Date: Fri, 5 Apr 2024 07:49:25 +0000 (-0500) Subject: Current upd. from live site. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=4f40b28171e474fa405f36ea49c2e9ca917a66eb;p=LifeLog.git Current upd. from live site. --- diff --git a/dbLifeLog/current_theme b/dbLifeLog/current_theme index 6b5590e..4c2e070 100755 --- a/dbLifeLog/current_theme +++ b/dbLifeLog/current_theme @@ -1 +1 @@ -Standard \ No newline at end of file +Sun \ No newline at end of file diff --git a/htdocs/cgi-bin/gitweb/gitweb.cgi b/htdocs/cgi-bin/gitweb/gitweb.cgi index 35316db..0f9d5a0 100755 --- a/htdocs/cgi-bin/gitweb/gitweb.cgi +++ b/htdocs/cgi-bin/gitweb/gitweb.cgi @@ -91,7 +91,7 @@ our $projectroot = "/srv/git"; our $project_maxdepth = 2007; # string of the home link on top of all pages -our $home_link_str = "projects"; +our $home_link_str = "lifelog.hopto.org"; # extra breadcrumbs preceding the home link our @extra_breadcrumbs = (); @@ -147,7 +147,7 @@ our $default_projects_order = "project"; # show repository only if this file exists # (only effective if this variable evaluates to true) -our $export_ok = 1; +our $export_ok = "git-daemon-export-ok"; # don't generate age column on the projects list page our $omit_age_column = 0; @@ -4750,9 +4750,18 @@ sub git_print_tree_entry { # the mode of the entry, list is the name of the entry, an href, # and link is the action links of the entry. - print "" . mode_str($t->{'mode'}) . "\n"; + #print "" . mode_str($t->{'mode'}) . "\n"; if (exists $t->{'size'}) { - print "$t->{'size'}\n"; + my $size = int($t->{'size'}); + if($size<1025){ + if ($t->{'type'} eq "tree"){ + print "--\n" + }else{ + print "$size b\n" + } + }else{ + print "".int($size/1024)." kb\n"; + } } if ($t->{'type'} eq "blob") { print "" . @@ -5796,10 +5805,10 @@ sub git_project_list_rows { (defined $pr->{'age_string'} ? $pr->{'age_string'} : "No commits") . "\n"; } print"" . + $cgi->a({-href => href(project=>$pr->{'path'}, action=>"tree")}, "source tree") ." | ". $cgi->a({-href => href(project=>$pr->{'path'}, action=>"summary")}, "summary") . " | " . $cgi->a({-href => href(project=>$pr->{'path'}, action=>"shortlog")}, "shortlog") . " | " . - $cgi->a({-href => href(project=>$pr->{'path'}, action=>"log")}, "log") . " | " . - $cgi->a({-href => href(project=>$pr->{'path'}, action=>"tree")}, "tree") . + $cgi->a({-href => href(project=>$pr->{'path'}, action=>"log")}, "log") . ($pr->{'forks'} ? " | " . $cgi->a({-href => href(project=>$pr->{'path'}, action=>"forks")}, "forks") : '') . "\n" . "\n"; @@ -7287,6 +7296,7 @@ sub git_tree { print "\n"; } + @entries = sort {$a=~/blob/ <=> $b=~/blob/} @entries; #sort by type; foreach my $line (@entries) { my %t = parse_ls_tree_line($line, -z => 1, -l => $show_sizes); diff --git a/htdocs/cgi-bin/gitweb/indextext.html b/htdocs/cgi-bin/gitweb/indextext.html new file mode 100644 index 0000000..5623507 --- /dev/null +++ b/htdocs/cgi-bin/gitweb/indextext.html @@ -0,0 +1,52 @@ +

Open Source Code Repository of Will Budic

+You can browse to where the code is implemented here. + +

Local, installation example, to fetch the LifeLog project, you can try the following:

+
+

Shell Example Command

+
$ git clone git://lifelog.hopto.org/LifeLog
+
+
+These projects are ISC Open Source License +