diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-12 20:24:10 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-12 20:24:10 +0000 |
commit | 6afb396354bdceab5f7354a2c4b9ccd3d3d4fae4 (patch) | |
tree | 5833f2e2fdfbd0f2e38e1ed5fc0624ffe739b37d | |
parent | 853f4039d9f1db3b82856e8576a3233f3fa59405 (diff) |
templatize commit types, so it could use icons, or whatever
-rwxr-xr-x | ikiwiki | 7 | ||||
-rw-r--r-- | templates/recentchanges.tmpl | 1 |
2 files changed, 7 insertions, 1 deletions
@@ -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 @@ <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"> |