templatize commit types, so it could use icons, or whatever

master
joey 2006-03-12 20:24:10 +00:00
parent 853f4039d9
commit 6afb396354
2 changed files with 7 additions and 1 deletions

View File

@ -446,13 +446,18 @@ sub rcs_recentchanges ($) { #{{{
$state='body';
}
elsif ($state eq 'body' && /$div/) {
my $committype="web";
if (defined $message[0] &&
$message[0]->{line}=~/^web commit by (\w+)(.*)/) {
$user="$1 (web)";
$user="$1";
$message[0]->{line}=$2;
}
else {
$committype="svn";
}
push @ret, { rev => $rev, user => $user,
commitype => $commitype,
when => $when, message => [@message],
pages => [@pages] } if @pages;
return @ret if @ret >= $num;

View File

@ -15,6 +15,7 @@
<TMPL_VAR NAME="LINK">
</TMPL_LOOP>
<br>
<!-- <TMPL_VAR NAME="COMMITTYPE"> -->
changed <TMPL_VAR NAME="WHEN"> by <TMPL_VAR NAME="USER">:
<i>
<TMPL_LOOP NAME="MESSAGE">