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 = ();
# 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;
# 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\">" .
(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";
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);
--- /dev/null
+<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>