From: joey Date: Sun, 12 Mar 2006 20:24:10 +0000 (+0000) Subject: templatize commit types, so it could use icons, or whatever X-Git-Tag: 1.0~402 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6afb396354bdceab5f7354a2c4b9ccd3d3d4fae4;p=ikiwiki.git templatize commit types, so it could use icons, or whatever --- diff --git a/ikiwiki b/ikiwiki index e684ce38a..abeda29c2 100755 --- a/ikiwiki +++ b/ikiwiki @@ -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; diff --git a/templates/recentchanges.tmpl b/templates/recentchanges.tmpl index 774fb34f0..3dc9fc1be 100644 --- a/templates/recentchanges.tmpl +++ b/templates/recentchanges.tmpl @@ -15,6 +15,7 @@
+ changed by :