[Bps-public-commit] App-Changeloggr branch, master, updated. 34a7dd569eb02b3e6bb0991f339ad7ec3ce22dcf

sartak at bestpractical.com sartak at bestpractical.com
Mon Apr 27 09:24:37 EDT 2009


The branch, master has been updated
       via  34a7dd569eb02b3e6bb0991f339ad7ec3ce22dcf (commit)
      from  31cfd60b71ec65ab99af38829abb975eeda22dc7 (commit)

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

- Log -----------------------------------------------------------------
commit 34a7dd569eb02b3e6bb0991f339ad7ec3ce22dcf
Author: Shawn M Moore <sartak at gmail.com>
Date:   Mon Apr 27 09:22:32 2009 -0400

    Better No changes "left" when there are no changes

diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index 12c42e3..5d67491 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -59,7 +59,8 @@ template '/vote-on-change' => sub {
         show_change($change);
         show_vote_form($change);
     } else {
-        h2 { "No changes left in this log" };
+        my $has_changes = $changelog->changes->count;
+        h2 { "No changes " . ($has_changes ? "left " : "") . " in this log" };
     }
 };
 

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



More information about the Bps-public-commit mailing list