]> git.xolatile.top Git - gorillanest.git/commitdiff
It Technically *Works*
authorEmil Williams <emilemilemil@cock.li>
Tue, 19 Aug 2025 14:47:24 +0000 (14:47 +0000)
committerEmil Williams <emilemilemil@cock.li>
Tue, 19 Aug 2025 14:47:24 +0000 (14:47 +0000)
gorillanest
template/index.tt
template/repository.tt

index cd294cb65f6c3f823d647f4d4c38528abd0469a9..9356c4d82cf426d5ca31599f9b3a385f9c8133af 100755 (executable)
@@ -11,6 +11,7 @@ use Sys::Syslog;
 use Template;
 use URI::Escape;
 
+use Data::Dumper;
 sub info {
     syslog("info", join(' ', @_));
 }
@@ -53,6 +54,8 @@ sub GN::user { # /$username/
 sub GN::repository { # /$username/$repository
     my ($root, $dataref) = @_;
     my %data = %$dataref;
+    $data{log} = Dumper(split(/\n/, qx(git log --pretty=format:\'%H | %an | %ad | %s%x0a\'))); # It technically works # | tac | tr -s \'\n\'
+    $data{found} = 1;
     return \%data;
 }
 
index a2048a77c7dc0e9f49276102112f35e4b8485598..908e25ded0564e13d135beb8ae2dc554561ed26d 100644 (file)
@@ -5,7 +5,7 @@
 <body>
 <h1>[% title %]</h1>
 <h2>[% description %]</h2>
-<ul>[% FOR i IN directories %]<li><a href="/[% i %]/">/[% i %]</a></li>[% END %]</ul>
+<ul>[% FOR i IN log %]<li><a href="/[% i %]/">/[% i %]</a></li>[% END %]</ul>
 </body>
 [% INCLUDE foot.tt %]
 </html>
index 2877fa34980707d5a4358e85d335215836881b67..f11849aab1b42bd105aa5e80b0033f28a55898ea 100644 (file)
@@ -3,6 +3,7 @@
 [% INCLUDE head.tt %]
 <body>
   <h1>[% title %]</h1>
+  <ul>[% FOR i IN log %]<li>[% i %]</li>[% END %]</ul>
   <p> Eventually this page will have something on it, RIGHT?!</p>
 </body>
 [% INCLUDE foot.tt %]