Project revamp part 2: Edit
Summary: Taking a pass at revamping the edit pages in Projects. Specifically: - Remove EditMainController - Move actions from EditMain to Profile - Move properties from EditMain to Profile - Move timeline from EditMain to Profile - Move Open Tasks from Profile to sidenavicon - Add custom icons and colors to timeline Feel free to bang on this a bit and give feedback, feels generally correct to me. Test Plan: Edit everything I could on various projects. Check links, timelines, actions. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11421
This commit is contained in:
@@ -149,13 +149,8 @@ final class PhabricatorProjectEditDetailsController
|
||||
));
|
||||
}
|
||||
|
||||
if ($is_new) {
|
||||
$redirect_uri =
|
||||
$this->getApplicationURI('profile/'.$project->getID().'/');
|
||||
} else {
|
||||
$redirect_uri =
|
||||
$this->getApplicationURI('edit/'.$project->getID().'/');
|
||||
}
|
||||
$redirect_uri =
|
||||
$this->getApplicationURI('profile/'.$project->getID().'/');
|
||||
|
||||
return id(new AphrontRedirectResponse())->setURI($redirect_uri);
|
||||
} catch (PhabricatorApplicationTransactionValidationException $ex) {
|
||||
@@ -304,7 +299,7 @@ final class PhabricatorProjectEditDetailsController
|
||||
|
||||
if (!$is_new) {
|
||||
$nav = $this->buildIconNavView($project);
|
||||
$nav->selectFilter("edit/{$id}/");
|
||||
$nav->selectFilter("details/{$id}/");
|
||||
$nav->appendChild($form_box);
|
||||
} else {
|
||||
$nav = array($form_box);
|
||||
|
||||
Reference in New Issue
Block a user