use Template;
use URI::Escape;
+use Data::Dumper;
sub info {
syslog("info", join(' ', @_));
}
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;
}
<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>