[Jifty-commit] r6796 - jifty/trunk/lib/Jifty/View/Declare

Jifty commits jifty-commit at lists.jifty.org
Thu Apr 16 19:12:47 EDT 2009


Author: sartak
Date: Thu Apr 16 19:12:47 2009
New Revision: 6796

Modified:
   jifty/trunk/lib/Jifty/View/Declare/CRUD.pm

Log:
Factor out page_title for CRUD

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	Thu Apr 16 19:12:47 2009
@@ -344,6 +344,17 @@
     render_param($args{action}, $args{field});
 }
 
+=head2 page_title
+
+The title for the CRUD page
+
+=cut
+
+sub page_title {
+    my $self = shift;
+    $self->object_type;
+}
+
 =head1 TEMPLATES
 
 =head2 index.html
@@ -354,7 +365,7 @@
 
 template 'index.html' => page {
     my $self = shift;
-    title is $self->object_type;
+    title is $self->page_title;
     form {
         render_region(
             name     => $self->object_type.'-list',


More information about the Jifty-commit mailing list