[Bps-public-commit] App-Changeloggr branch, vote-sidebar, updated. 5b19faa6ef201d7a41448cb549ef79c75b2091c9

sartak at bestpractical.com sartak at bestpractical.com
Wed Aug 5 02:56:44 EDT 2009


The branch, vote-sidebar has been updated
       via  5b19faa6ef201d7a41448cb549ef79c75b2091c9 (commit)
      from  f54ad9c124e4750593ca9b3616291684c22b6600 (commit)

Summary of changes:
 lib/App/Changeloggr/View.pm |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

- Log -----------------------------------------------------------------
commit 5b19faa6ef201d7a41448cb549ef79c75b2091c9
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed Aug 5 02:56:14 2009 -0400

    Don't use a new region for vote buttons
    
        Both the change and the buttons need to be refreshed anyway

diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index d9e91b8..ab338f7 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -157,13 +157,7 @@ sub show_change {
 
     my $id = $change->id;
 
-    render_region(
-        name      => "vote_$id",
-        path      => '/change/vote',
-        arguments => {
-            change => $id,
-        },
-    );
+    show_vote_form($change);
 
     div {
         { class is "change" };
@@ -280,8 +274,8 @@ template '/change/more' => sub {
     };
 };
 
-template '/change/vote' => sub {
-    my $change = M('Change', id => get('change'));
+sub show_vote_form {
+    my $change = shift;
     my $changelog = $change->changelog;
     my $valid_tags = $change->prioritized_tags;
 

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



More information about the Bps-public-commit mailing list