[Bps-public-commit] App-Changeloggr branch, master, updated. e686eb98434f70690c0cbd7fb6b1dd1634211582
sartak at bestpractical.com
sartak at bestpractical.com
Wed Apr 29 15:28:55 EDT 2009
The branch, master has been updated
via e686eb98434f70690c0cbd7fb6b1dd1634211582 (commit)
from 329486280617af428ad029356e8a51191c4265df (commit)
Summary of changes:
lib/App/Changeloggr/View/Admin.pm | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
- Log -----------------------------------------------------------------
commit e686eb98434f70690c0cbd7fb6b1dd1634211582
Author: Shawn M Moore <sartak at gmail.com>
Date: Wed Apr 29 15:28:42 2009 -0400
Actually, just get rid of the ugly voted/unvoted changes thing
diff --git a/lib/App/Changeloggr/View/Admin.pm b/lib/App/Changeloggr/View/Admin.pm
index 2a64a83..3a44d25 100644
--- a/lib/App/Changeloggr/View/Admin.pm
+++ b/lib/App/Changeloggr/View/Admin.pm
@@ -49,17 +49,6 @@ template '/changelog/votes' => page {
my $changelog = Changelog(id => get('id'));
my $changes = $changelog->changes;
- my $count_all = $changes->count;
- $changes->limit_to_voted;
- my $count_voted = $changes->count;
-
- # if there are no votes, just show every change by pretending they've
- # all been voted on. this is kind of abusive.
- if ($count_voted == 0) {
- $changes = $changelog->changes;
- $count_all = $count_voted = $changes->count;
- }
-
h3 { "Changes" }
ul {
for my $change (@$changes) {
@@ -83,10 +72,6 @@ template '/changelog/votes' => page {
}
};
- my $count_unvoted = $count_all - $count_voted;
- if ($count_unvoted) {
- p { _("Not showing %quant(%1,change) that have not been voted on.", $count_unvoted) }
- }
};
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list