[Bps-public-commit] r17541 - in sd/trunk/lib/App/SD: CLI/Command/Help
jesse at bestpractical.com
jesse at bestpractical.com
Fri Jan 2 19:59:18 EST 2009
Author: jesse
Date: Fri Jan 2 19:59:17 2009
New Revision: 17541
Modified:
sd/trunk/lib/App/SD/CLI/Command/Help/Intro.pm
sd/trunk/lib/App/SD/Server/Dispatcher.pm
sd/trunk/lib/App/SD/Server/View.pm
Log:
* Fix more issue->ticket
Modified: sd/trunk/lib/App/SD/CLI/Command/Help/Intro.pm
==============================================================================
--- sd/trunk/lib/App/SD/CLI/Command/Help/Intro.pm (original)
+++ sd/trunk/lib/App/SD/CLI/Command/Help/Intro.pm Fri Jan 2 19:59:17 2009
@@ -12,7 +12,7 @@
distributed database. SD is designed to make it easy to work with tickets
and to share ticket databases with your collaborators.
-To get started with SD, you need an ticket database. To get an issue
+To get started with SD, you need an ticket database. To get an ticket
database, you have two options: You can clone an existing database
or start a new one.
Modified: sd/trunk/lib/App/SD/Server/Dispatcher.pm
==============================================================================
--- sd/trunk/lib/App/SD/Server/Dispatcher.pm (original)
+++ sd/trunk/lib/App/SD/Server/Dispatcher.pm Fri Jan 2 19:59:17 2009
@@ -18,8 +18,8 @@
on qr'.' => sub {
my $self = shift;
- my $tickets = $self->server->nav->child( issues => label => 'Issues', url => '/issues');
- $tickets->child( go => label => '<form method="GET" action="/issue"><a href="#">Show issue # <input type=text name=id size=3></a></form>', escape_label => 0);
+ my $tickets = $self->server->nav->child( tickets => label => 'Issues', url => '/tickets');
+ $tickets->child( go => label => '<form method="GET" action="/ticket"><a href="#">Show ticket # <input type=text name=id size=3></a></form>', escape_label => 0);
my $milestones = $tickets->child( milestones => label => 'Milestones', url => '/milestones');
@@ -35,7 +35,7 @@
}
- $self->server->nav->child( create => label => 'New ticket', url => '/issue/new');
+ $self->server->nav->child( create => label => 'New ticket', url => '/ticket/new');
$self->server->nav->child( home => label => 'Home', url => '/');
@@ -46,7 +46,7 @@
under 'POST' => sub {
on 'records' => sub { next_rule;};
- on qr'^POST/ticket/([\w\d-]+)/edit$' => sub { shift->server->_send_redirect( to => '/issue/' . $1 ); };
+ on qr'^POST/ticket/([\w\d-]+)/edit$' => sub { shift->server->_send_redirect( to => '/ticket/' . $1 ); };
on qr'^POST/(.*)$' => sub { shift->server->_send_redirect( to => $1 ); }
};
Modified: sd/trunk/lib/App/SD/Server/View.pm
==============================================================================
--- sd/trunk/lib/App/SD/Server/View.pm (original)
+++ sd/trunk/lib/App/SD/Server/View.pm Fri Jan 2 19:59:17 2009
@@ -92,7 +92,7 @@
width: 70%;
}
-div.ticket_list ul li span.issue-link {
+div.ticket_list ul li span.ticket-link {
width: 2em;
text-align: right;
}
@@ -261,7 +261,7 @@
handle => $self->app_handle->handle
);
$tickets->matching($callback);
- show( '/ticket_list', $issues );
+ show( '/ticket_list', $tickets );
}
template edit_ticket => page {
@@ -274,7 +274,7 @@
);
$ticket->load(($id =~ /^\d+$/ ? 'luid' : 'uuid') =>$id);
- $ticket->luid.": ".$issue->prop('summary');
+ $ticket->luid.": ".$ticket->prop('summary');
@@ -287,10 +287,10 @@
);
$ticket->load(($id =~ /^\d+$/ ? 'luid' : 'uuid') =>$id);
- title is $ticket->luid.": ".$issue->prop('summary');
+ title is $ticket->luid.": ".$ticket->prop('summary');
ul { {class is 'actions'};
- li { a {{ href is '/ticket/'.$issue->uuid.''}; 'Show'}; };
+ li { a {{ href is '/ticket/'.$ticket->uuid.''}; 'Show'}; };
};
form {
@@ -416,10 +416,10 @@
}
};
tbody {
- for my $ticket (@$issues) {
+ for my $ticket (@$tickets) {
row {
- cell { ticket_link( $issue => $issue->luid );};
+ cell { ticket_link( $ticket => $ticket->luid );};
cell{ class is 'status'; $ticket->prop('status') };
cell { class is 'summary'; $ticket->prop('summary') };
cell { class is 'created'; $ticket->prop('created') };
@@ -445,7 +445,7 @@
);
$ticket->load(($id =~ /^\d+$/ ? 'luid' : 'uuid') =>$id);
- $ticket->luid.": ".$issue->prop('summary');
+ $ticket->luid.": ".$ticket->prop('summary');
} content {
my $self = shift;
my $id = shift;
@@ -455,13 +455,13 @@
);
$ticket->load(($id =~ /^\d+$/ ? 'luid' : 'uuid') =>$id);
ul { {class is 'actions'};
- li { a {{ href is '/ticket/'.$issue->uuid.'/edit'}; 'Edit'}; };
+ li { a {{ href is '/ticket/'.$ticket->uuid.'/edit'}; 'Edit'}; };
};
- show ticket_basics => $issue;
- show ticket_attachments => $issue;
- show ticket_comments => $issue;
- show ticket_history => $issue;
+ show ticket_basics => $ticket;
+ show ticket_attachments => $ticket;
+ show ticket_comments => $ticket;
+ show ticket_history => $ticket;
};
@@ -547,7 +547,7 @@
a {
{
class is 'ticket';
- href is '/ticket/' . $issue->uuid;
+ href is '/ticket/' . $ticket->uuid;
};
$label;
}
More information about the Bps-public-commit
mailing list