]> sipb.mit.edu Git - ikiwiki.git/blobdiff - ikiwiki
templatize commit types, so it could use icons, or whatever
[ikiwiki.git] / ikiwiki
diff --git a/ikiwiki b/ikiwiki
index e684ce38ae03d0fdc132e6c965d28366e421f616..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]->{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;