Show releases in a tab on the project page

This commit is contained in:
Eelco Dolstra
2013-02-21 01:23:42 +01:00
parent d9f6e662d8
commit cea17fd57e
5 changed files with 42 additions and 49 deletions

View File

@ -66,7 +66,7 @@ sub submit : Chained('release') PathPart('submit') Args(0) {
txn_do($c->model('DB')->schema, sub {
$c->stash->{release}->delete;
});
$c->res->redirect($c->uri_for($c->controller('Project')->action_for('releases'),
$c->res->redirect($c->uri_for($c->controller('Project')->action_for('view'),
[$c->stash->{project}->name]));
} else {
txn_do($c->model('DB')->schema, sub {