]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Current upd. from live site.
authorWill Budic <redacted>
Fri, 5 Apr 2024 07:49:25 +0000 (02:49 -0500)
committerWill Budic <redacted>
Fri, 5 Apr 2024 07:49:25 +0000 (02:49 -0500)
dbLifeLog/current_theme
htdocs/cgi-bin/gitweb/gitweb.cgi
htdocs/cgi-bin/gitweb/indextext.html [new file with mode: 0644]

index 6b5590ed7850ab8acc105a5c18a61b6a6a01aa9a..4c2e0704693ac53101667961cbe814969499e96e 100755 (executable)
@@ -1 +1 @@
-Standard
\ No newline at end of file
+Sun
\ No newline at end of file
index 35316dba5900098907e4cd29960d8e95f722ae66..0f9d5a0db8b57c4c5e2df830c30b12c0057a2fc9 100755 (executable)
@@ -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 "<td class=\"mode\">" . mode_str($t->{'mode'}) . "</td>\n";
+       #print "<td class=\"mode\">" . mode_str($t->{'mode'}) . "</td>\n";
        if (exists $t->{'size'}) {
-               print "<td class=\"size\">$t->{'size'}</td>\n";
+               my $size = int($t->{'size'}); 
+               if($size<1025){
+                       if ($t->{'type'} eq "tree"){
+                               print "<td class=\"size\">--</td>\n" 
+                       }else{
+                               print "<td class=\"size\">$size b</td>\n" 
+                       }
+               }else{
+                       print "<td class=\"size\">".int($size/1024)." kb</td>\n";
+               }
        }
        if ($t->{'type'} eq "blob") {
                print "<td class=\"list\">" .
@@ -5796,10 +5805,10 @@ sub git_project_list_rows {
                            (defined $pr->{'age_string'} ? $pr->{'age_string'} : "No commits") . "</td>\n";
                }
                print"<td class=\"link\">" .
+                     $cgi->a({-href => href(project=>$pr->{'path'}, action=>"tree")}, "<b>source tree</b>") ." | ".
                      $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") : '') .
                      "</td>\n" .
                      "</tr>\n";
@@ -7287,6 +7296,7 @@ sub git_tree {
 
                print "</tr>\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 (file)
index 0000000..5623507
--- /dev/null
@@ -0,0 +1,52 @@
+<h2>Open Source Code Repository of Will Budic</h2>
+You can browse to where the code is implemented <a href="https://lifelog.hopto.org"><b>here</b></a>.
+<style>
+   code, pre{
+       font-family: 'Droid Sans Mono', 'monospace', monospace;
+    }
+
+    .pre {
+        border:1px solid gray;
+        background: rgba(255,255,255,0.2);
+        padding:15px;
+        text-align: left;
+    }
+div .perl {
+        border:1px solid lightgray;
+        padding-left:15px;
+        padding-right:15px;
+        font-family:monospace;
+        text-align: left;
+        padding-bottom: 10px;
+        margin-top: 15px;
+       display:flexbox;
+    }
+
+
+    .perl h1{
+        text-align: left;
+        padding-left: 15px;
+        margin-top: -10px;
+        height: 20px;
+        line-height: 20px;
+        font-size: 15px;
+    }
+
+    .perl h1 span{
+        background:  rgba(170, 227, 191, 0.75);
+        border:1px solid lightgray;
+        color:black;
+        font-size:small;
+        padding: 3px;
+        padding-left: 5px;
+        padding-right: 5px;
+    }
+</style>
+<h3>Local, installation example, to fetch the LifeLog project, you can try the following:</h3>
+<div class="perl">
+       <h1><span>Shell Example Command</span></h1>
+       <pre class="pre">$ git clone git://lifelog.hopto.org/LifeLog</pre>
+</div>
+<div>
+These projects are <a href="https://choosealicense.com/licenses/isc/">ISC Open Source License</a>
+</div>