[Bps-public-commit] App-Changeloggr branch, master, updated. 684eba54fb0ff7664000af71e28bcd9701dc43e1
sartak at bestpractical.com
sartak at bestpractical.com
Wed May 20 16:33:24 EDT 2009
The branch, master has been updated
via 684eba54fb0ff7664000af71e28bcd9701dc43e1 (commit)
from 37ace56cbe60ddae26937e1149ad31f6d6c810e2 (commit)
Summary of changes:
lib/App/Changeloggr/Dispatcher.pm | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
- Log -----------------------------------------------------------------
commit 684eba54fb0ff7664000af71e28bcd9701dc43e1
Author: Shawn M Moore <sartak at gmail.com>
Date: Wed May 20 16:32:54 2009 -0400
Reuse the admin menu for exports
diff --git a/lib/App/Changeloggr/Dispatcher.pm b/lib/App/Changeloggr/Dispatcher.pm
index 84bf3ae..674dc25 100644
--- a/lib/App/Changeloggr/Dispatcher.pm
+++ b/lib/App/Changeloggr/Dispatcher.pm
@@ -59,7 +59,7 @@ on qr{^/admin/changelog((?:/[^/]+)*)/([^/]+)$} => run {
Votes => url => "/admin/changelog/votes/$uuid",
);
- add_export_format_nav($cl->name);
+ add_export_format_nav($admin);
set id => $cl->id;
show "/admin/changelog$subpage";
@@ -73,17 +73,12 @@ before '/account' => sub {
};
sub add_export_format_nav {
- my $name = shift;
-
- my $changelog = Jifty->web->navigation->child(
- $name => url => "/changelog/$name",
- active => 1,
- );
+ my $parent = shift;
my @output_formats = map { s/.*:://; $_ } App::Changeloggr->output_formats;
for my $format_name (@output_formats) {
- $changelog->child(
+ $parent->child(
"Export as $format_name" =>
url => "/changelog/$name/$format_name/Changes",
);
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list