Split viewing and editing a project

This commit is contained in:
Eelco Dolstra
2013-02-21 01:12:57 +01:00
parent 03aee6726f
commit d9f6e662d8
5 changed files with 191 additions and 177 deletions

View File

@ -34,7 +34,7 @@ sub edit : Chained('project') PathPart Args(0) {
requireProjectOwner($c, $c->stash->{project});
$c->stash->{template} = 'project.tt';
$c->stash->{template} = 'edit-project.tt';
$c->stash->{edit} = 1;
}
@ -99,7 +99,7 @@ sub create : Path('/create-project') {
requireMayCreateProjects($c);
$c->stash->{template} = 'project.tt';
$c->stash->{template} = 'edit-project.tt';
$c->stash->{create} = 1;
$c->stash->{edit} = 1;
}