[Bps-public-commit] App-Changeloggr branch, master, updated. 52fdd0ee731928c1d7d786597f8451e266c0dc6f

sartak at bestpractical.com sartak at bestpractical.com
Wed Apr 1 13:28:42 EDT 2009


The branch, master has been updated
       via  52fdd0ee731928c1d7d786597f8451e266c0dc6f (commit)
      from  d069ba0b1e7aeea39ba3d9b784313d89e743c699 (commit)

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

- Log -----------------------------------------------------------------
commit 52fdd0ee731928c1d7d786597f8451e266c0dc6f
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed Apr 1 13:28:28 2009 -0400

    In devel mode, link to each changelog's admin page

diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index 7cfb1d1..910c8ac 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -108,6 +108,15 @@ sub changelog_summary {
         url   => '/changelog/' . $changelog->name,
         label => $changelog->name,
     );
+
+    if (Jifty->config->framework('DevelMode')) {
+        span {};
+        my $admin_token = $changelog->as_superuser->admin_token;
+        hyperlink(
+            url => "/changelog/$admin_token/admin",
+            label => "[administrate]",
+        );
+    }
 }
 
 sub show_change {

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



More information about the Bps-public-commit mailing list