[Bps-public-commit] App-Changeloggr branch, ajaxify-reword, updated. 4b4cd83421e5f653cc6d37513235a549ef7383eb
sartak at bestpractical.com
sartak at bestpractical.com
Wed Aug 5 21:20:42 EDT 2009
The branch, ajaxify-reword has been updated
via 4b4cd83421e5f653cc6d37513235a549ef7383eb (commit)
from 4903e3ea9396c73ea256a8bb1dcf2298b005a525 (commit)
Summary of changes:
lib/App/Changeloggr/View.pm | 27 +++++++++++++++++++--------
1 files changed, 19 insertions(+), 8 deletions(-)
- Log -----------------------------------------------------------------
commit 4b4cd83421e5f653cc6d37513235a549ef7383eb
Author: Shawn M Moore <sartak at gmail.com>
Date: Wed Aug 5 21:20:30 2009 -0400
Turn change message into a region
diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index 6592993..7bb7bce 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -179,14 +179,13 @@ sub show_change {
}
};
- p {
- { class is "change_message" };
- my $message = Jifty->web->escape($change->message);
- $message =~ s{\n}{<br />}g;
- my $links = $change->changelog->commit_links;
- $message = $_->linkify($message) while $_ = $links->next;
- outs_raw( $message );
- };
+ render_region(
+ name => "change_message",
+ path => "/change/message",
+ arguments => {
+ change => $change->id,
+ },
+ );
ul {
{ class is "change_metadata" };
@@ -237,6 +236,18 @@ sub show_change {
};
}
+template '/change/message' => sub {
+ my $change = M('Change', id => get('change'));
+ p {
+ { class is "change_message" };
+ my $message = Jifty->web->escape($change->message);
+ $message =~ s{\n}{<br />}g;
+ my $links = $change->changelog->commit_links;
+ $message = $_->linkify($message) while $_ = $links->next;
+ outs_raw( $message );
+ };
+};
+
template '/change/external_source' => sub {
my $url = get('url');
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list