[Jifty-commit] r3278 - in jifty/trunk: lib/Jifty/Plugin
lib/Jifty/View/Declare
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun May 20 20:44:51 EDT 2007
Author: jesse
Date: Sun May 20 20:44:50 2007
New Revision: 3278
Added:
jifty/trunk/lib/Jifty/Plugin/SiteNews.pm
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/View/Declare/CRUD.pm
jifty/trunk/lib/Jifty/View/Declare/Handler.pm
Log:
r56966 at pinglin: jesse | 2007-05-18 19:35:13 -0400
* cleanups to make new-item work well
r56968 at pinglin: jesse | 2007-05-18 19:36:34 -0400
* starting out the tests for the news plugin
r57004 at pinglin: jesse | 2007-05-20 20:33:46 -0400
* small refactoring
r57006 at pinglin: jesse | 2007-05-20 20:42:34 -0400
* Site news plugin pluginfile
Added: jifty/trunk/lib/Jifty/Plugin/SiteNews.pm
==============================================================================
--- (empty file)
+++ jifty/trunk/lib/Jifty/Plugin/SiteNews.pm Sun May 20 20:44:50 2007
@@ -0,0 +1,7 @@
+use warnings;
+use strict;
+package Jifty::Plugin::SiteNews;
+use base qw'Jifty::Plugin';
+
+
+1;
Modified: jifty/trunk/lib/Jifty/View/Declare/CRUD.pm
==============================================================================
--- jifty/trunk/lib/Jifty/View/Declare/CRUD.pm (original)
+++ jifty/trunk/lib/Jifty/View/Declare/CRUD.pm Sun May 20 20:44:50 2007
@@ -196,6 +196,20 @@
};
+ show ('./paging', $collection);
+
+ if ($fragment_for_new_item) {
+ render_region(
+ name => 'new_item',
+ path => $fragment_for_new_item,
+ defaults => { object_type => $object_type },
+ );
+ }
+};
+
+private template paging => sub {
+ my $self = shift;
+ my $collection = shift;
div {
{ class is 'paging' };
if ( $collection->pager->previous_page ) {
@@ -211,15 +225,6 @@
}
}
};
-
-
- if ($fragment_for_new_item) {
- render_region(
- name => 'new_item',
- path => $fragment_for_new_item,
- defaults => { object_type => $object_type },
- );
- }
};
Modified: jifty/trunk/lib/Jifty/View/Declare/Handler.pm
==============================================================================
--- jifty/trunk/lib/Jifty/View/Declare/Handler.pm (original)
+++ jifty/trunk/lib/Jifty/View/Declare/Handler.pm Sun May 20 20:44:50 2007
@@ -74,7 +74,7 @@
shift; # Turn the method into a function
goto &Template::Declare::Tags::outs_raw;
};
- my $content = Template::Declare::Tags::show( $template );
+ my $content = Template::Declare::Tags::show_page( $template );
return unless defined $content && length $content;
my $r = Jifty->handler->apache;
More information about the Jifty-commit
mailing list