[Bps-public-commit] App-Changeloggr branch, master, updated. b06a4920836da3ea67ae1d81cccef32d753fd190
sartak at bestpractical.com
sartak at bestpractical.com
Wed Apr 29 12:37:44 EDT 2009
The branch, master has been updated
via b06a4920836da3ea67ae1d81cccef32d753fd190 (commit)
via 9d3f4f3835be5aa4f8ef5289bc1294c9ddec9b15 (commit)
via aff7a32ff1a8e41ae9c3c10107add989d2d95488 (commit)
from e47b6fd72f464233d4f2f8bf1f63c08f35d0c00c (commit)
Summary of changes:
etc/config.yml | 2 +-
lib/App/Changeloggr/Model/Vote.pm | 5 +++++
lib/App/Changeloggr/View.pm | 3 +++
3 files changed, 9 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit aff7a32ff1a8e41ae9c3c10107add989d2d95488
Author: Shawn M Moore <sartak at gmail.com>
Date: Wed Apr 29 12:25:47 2009 -0400
Add a comment field to Votes
diff --git a/etc/config.yml b/etc/config.yml
index f4fb446..6993c35 100644
--- a/etc/config.yml
+++ b/etc/config.yml
@@ -14,7 +14,7 @@ framework:
Password: ''
RecordBaseClass: Jifty::DBI::Record::Cachable
User: ''
- Version: 0.0.2
+ Version: 0.0.3
DevelMode: 1
L10N:
PoDir: share/po
diff --git a/lib/App/Changeloggr/Model/Vote.pm b/lib/App/Changeloggr/Model/Vote.pm
index 7c0f810..5972b8f 100644
--- a/lib/App/Changeloggr/Model/Vote.pm
+++ b/lib/App/Changeloggr/Model/Vote.pm
@@ -24,6 +24,11 @@ use App::Changeloggr::Record schema {
type is 'text',
is mandatory,
is immutable;
+
+ column comment =>
+ type is 'textarea',
+ default is '',
+ since '0.0.3';
};
sub current_user_can {
commit 9d3f4f3835be5aa4f8ef5289bc1294c9ddec9b15
Author: Shawn M Moore <sartak at gmail.com>
Date: Wed Apr 29 12:36:50 2009 -0400
On second thought, one-line comments are nice
diff --git a/lib/App/Changeloggr/Model/Vote.pm b/lib/App/Changeloggr/Model/Vote.pm
index 5972b8f..c912ab1 100644
--- a/lib/App/Changeloggr/Model/Vote.pm
+++ b/lib/App/Changeloggr/Model/Vote.pm
@@ -26,7 +26,7 @@ use App::Changeloggr::Record schema {
is immutable;
column comment =>
- type is 'textarea',
+ type is 'text',
default is '',
since '0.0.3';
};
commit b06a4920836da3ea67ae1d81cccef32d753fd190
Author: Shawn M Moore <sartak at gmail.com>
Date: Wed Apr 29 12:37:35 2009 -0400
Render textbox for new comment
diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index ed4b675..bb62d47 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -164,6 +164,9 @@ sub show_vote_form {
);
}
}
+
+ h5 { 'Comment?' };
+ $vote->form_field('comment')->render_widget;
}
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list