[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. 2cedb3e8389c9d725d6abfcd76c23eaa5abfad90

Stefan Hornburg racke at rt.icdevgroup.org
Thu Feb 5 21:41:16 UTC 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Interchange wellwell catalog".

The branch, master has been updated
       via  2cedb3e8389c9d725d6abfcd76c23eaa5abfad90 (commit)
      from  8246c351452835958bbd861b06961ad2e00245e7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2cedb3e8389c9d725d6abfcd76c23eaa5abfad90
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Thu Feb 5 22:40:42 2009 +0100

    allow to pass a template as body

-----------------------------------------------------------------------

Summary of changes and diff:
 plugins/content/code/content.tag |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/plugins/content/code/content.tag b/plugins/content/code/content.tag
index 7ef9e29..59fbe12 100644
--- a/plugins/content/code/content.tag
+++ b/plugins/content/code/content.tag
@@ -1,9 +1,10 @@
 UserTag content Order function code
 UserTag content AddAttr
+UserTag content HasEndTag
 UserTag content Routine <<EOR
 sub {
-	my ($function, $code, $opt) = @_;
-	my ($ctref, $out);
+	my ($function, $code, $opt, $body) = @_;
+	my ($ctref, $out, %content);
 
 	$Tag->perl({tables => 'content'});
 
@@ -45,15 +46,20 @@ sub {
 
 		if ($Tag->acl({function => 'check', permission => \@edit_perms})) {
 			$uri = $Tag->area({href => "content/edit/$ctref->{code}"});
-			$out .= qq{<a href="$uri">Edit</a>};
+			$content{edit_link} = qq{<a href="$uri">Edit</a>};
 		}
 	}
 
 	unless ($opt->{no_title}) {
-		$out .= $ctref->{title};
+		$content{title} = $ctref->{title};
 	}
 
-	$out .= $ctref->{body};
-	return $out;
+	$content{body} = $ctref->{body};
+
+	if ($body) {
+		return $Tag->uc_attr_list({hash => \%content, body => $body});
+	}
+
+	return $content{edit_link} . $content{title} . $content{body};
 }
 EOR


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list