[Bps-public-commit] App-Changeloggr branch, master, updated. 91334cf7c5939e6d1d4b7d55228e3776d44923b9

sartak at bestpractical.com sartak at bestpractical.com
Thu Feb 26 23:26:49 EST 2009


The branch, master has been updated
       via  91334cf7c5939e6d1d4b7d55228e3776d44923b9 (commit)
      from  77f2423b6ae824ac16de3786a467ec437bc1ee64 (commit)

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

- Log -----------------------------------------------------------------
commit 91334cf7c5939e6d1d4b7d55228e3776d44923b9
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Feb 26 23:26:35 2009 -0500

    Add a delete button to changelog admin

diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index 4fede6c..35d37f8 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -39,6 +39,13 @@ template '/changelog/admin' => page {
         render_action($update);
         form_submit(label => 'Update');
     };
+
+    my $delete = $changelog->as_delete_action;
+    form {
+        render_action($delete);
+        form_next_page(url => '/');
+        form_submit(label => 'Delete');
+    };
 };
 
 sub changelog_summary {

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



More information about the Bps-public-commit mailing list