]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - ikiwiki
templatize commit types, so it could use icons, or whatever
[git.ikiwiki.info.git] / ikiwiki
diff --git a/ikiwiki b/ikiwiki
index 46140c9eab61f0af5504a9342cd5f519a15f3166..abeda29c248dba2ad2722740b8149dca478072bb 100755 (executable)
--- 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]=~/^web commit by (\w+)(.*)/) {
-                                       $user="$1 (web)";
-                                       $message[0]=$2;
+                                   $message[0]->{line}=~/^web commit by (\w+)(.*)/) {
+                                       $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;