[Bps-public-commit] App-Changeloggr branch, master, updated. 16f1735309f864f755aaf9e41daf3233c0b32925
sartak at bestpractical.com
sartak at bestpractical.com
Fri May 22 18:00:41 EDT 2009
The branch, master has been updated
via 16f1735309f864f755aaf9e41daf3233c0b32925 (commit)
from 08501e24c3fa7827e6aab1e043682b3001aead48 (commit)
Summary of changes:
lib/App/Changeloggr/Model/Change.pm | 5 +++++
lib/App/Changeloggr/View.pm | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 16f1735309f864f755aaf9e41daf3233c0b32925
Author: Shawn M Moore <sartak at gmail.com>
Date: Fri May 22 18:00:28 2009 -0400
Factor out Change->prioritized_tags for future extension
diff --git a/lib/App/Changeloggr/Model/Change.pm b/lib/App/Changeloggr/Model/Change.pm
index 81335ce..9609ec8 100644
--- a/lib/App/Changeloggr/Model/Change.pm
+++ b/lib/App/Changeloggr/Model/Change.pm
@@ -120,5 +120,10 @@ sub numeric_importance {
return $numeric_importance;
}
+sub prioritized_tags {
+ my $self = shift;
+ return $self->changelog->visible_tags;
+}
+
1;
diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index ef311b6..511200d 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -216,7 +216,7 @@ sub show_vote_form {
my $change = shift;
my $changelog = $change->changelog;
- my $valid_tags = $changelog->visible_tags;
+ my $valid_tags = $change->prioritized_tags;
form {
h4 { 'Vote!' };
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list