[Bps-public-commit] jifty-plugin-recordhistory branch, master, updated. 24d3c9ed9cf4b7e3aa020e28b92e6101ab32c7a7

Shawn Moore sartak at bestpractical.com
Wed Feb 9 22:36:16 EST 2011


The branch, master has been updated
       via  24d3c9ed9cf4b7e3aa020e28b92e6101ab32c7a7 (commit)
      from  151dcb5cfce9c73c8f51fbe005f71c552016482d (commit)

Summary of changes:
 lib/Jifty/Plugin/RecordHistory/View.pm |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit 24d3c9ed9cf4b7e3aa020e28b92e6101ab32c7a7
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Feb 9 22:36:08 2011 -0500

    Wrap each change in an ol/li structure

diff --git a/lib/Jifty/Plugin/RecordHistory/View.pm b/lib/Jifty/Plugin/RecordHistory/View.pm
index c426252..f77ac22 100644
--- a/lib/Jifty/Plugin/RecordHistory/View.pm
+++ b/lib/Jifty/Plugin/RecordHistory/View.pm
@@ -98,9 +98,11 @@ template 'changes' => sub {
         return;
     }
 
-    while (my $change = $changes->next) {
-        show 'change' => $change;
-    }
+    ol {
+        while (my $change = $changes->next) {
+            show 'change' => $change;
+        }
+    };
 };
 
 template 'change' => sub {
@@ -109,7 +111,7 @@ template 'change' => sub {
 
     my $template = 'change-' . $change->type;
 
-    show $template => $change;
+    li { show $template => $change };
 };
 
 template 'change-create' => sub {

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



More information about the Bps-public-commit mailing list