[Bps-public-commit] SD - A distributed issue tracker branch, master, updated. 22fca20385421e6461af663a97723c75c700515e
jesse
jesse at bestpractical.com
Mon Jan 19 00:17:46 EST 2009
The branch, master has been updated
via 22fca20385421e6461af663a97723c75c700515e (commit)
from b218fdae1be844efb2ae70cebcf7549c5893924c (commit)
Summary of changes:
lib/App/SD/Server/View.pm | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 22fca20385421e6461af663a97723c75c700515e
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Mon Jan 19 00:17:27 2009 -0500
Set up a new home view
diff --git a/lib/App/SD/Server/View.pm b/lib/App/SD/Server/View.pm
index b68f2dd..d21aebe 100644
--- a/lib/App/SD/Server/View.pm
+++ b/lib/App/SD/Server/View.pm
@@ -236,9 +236,9 @@ ul.comments li:nth-child(odd) {
' );
};
-template '/' => page {'Open tickets'}
+template '/' => page {'My open tickets for the current milestone'}
content {
- show('/tickets/open');
+ show('/tickets/hot');
};
@@ -457,6 +457,14 @@ template header => sub {
h1 { $title };
};
+template '/tickets/hot' => sub {
+ my $self = shift;
+
+ my $current_milestone = $self->app_handle->setting(label => 'default_milestone')->get()->[0];
+
+ $self->show_tickets (sub { my $item = shift; return ($item->has_active_status && $item->prop('milestone') eq $current_milestone && ($item->prop('owner') eq $item->app_handle->config->get('email_address')|| !$item->prop('owner'))) ? 1 : 0; });
+
+};
template '/tickets/open' => sub {
my $self = shift;
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list