1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-18 19:40:55 +01:00

Minor tweaks to Profile/Project

Summary:
- Redirect to profileview when new image is uploaded.
- Add ProfileNav to EditPicture on Profile
- Add ProfileNav to EditProfile on Profile

Test Plan: Set new images on Profiles and Projects. See new redirect. See new navs.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15132
This commit is contained in:
Chad Little 2016-01-28 22:45:19 +00:00 committed by chad
parent a5f6223553
commit 5e639feab4
3 changed files with 12 additions and 3 deletions

View file

@ -86,9 +86,13 @@ final class PhabricatorPeopleProfileEditController
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb(pht('Edit Profile'));
$nav = $this->getProfileMenu();
$nav->selectFilter(PhabricatorPeopleProfilePanelEngine::PANEL_MANAGE);
return $this->newPage()
->setTitle($title)
->setCrumbs($crumbs)
->setNavigation($nav)
->appendChild($form_box);
}
}

View file

@ -22,8 +22,9 @@ final class PhabricatorPeopleProfilePictureController
}
$this->setUser($user);
$name = $user->getUserName();
$done_uri = $this->getApplicationURI("manage/{$id}/");
$done_uri = '/p/'.$name.'/';
$supported_formats = PhabricatorFile::getTransformableImageFormats();
$e_file = true;
@ -251,9 +252,13 @@ final class PhabricatorPeopleProfilePictureController
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb(pht('Edit Profile Picture'));
$nav = $this->getProfileMenu();
$nav->selectFilter(PhabricatorPeopleProfilePanelEngine::PANEL_MANAGE);
return $this->newPage()
->setTitle($title)
->setCrumbs($crumbs)
->setNavigation($nav)
->appendChild(
array(
$form_box,

View file

@ -23,8 +23,8 @@ final class PhabricatorProjectEditPictureController
$this->setProject($project);
$edit_uri = $this->getApplicationURI('manage/'.$project->getID().'/');
$view_uri = $this->getApplicationURI('manage/'.$project->getID().'/');
$edit_uri = $this->getApplicationURI('profile/'.$project->getID().'/');
$view_uri = $this->getApplicationURI('profile/'.$project->getID().'/');
$supported_formats = PhabricatorFile::getTransformableImageFormats();
$e_file = true;