@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Chad Little and committed by
chad
5e639fea a5f62235

+12 -3
+4
src/applications/people/controller/PhabricatorPeopleProfileEditController.php
··· 86 86 $crumbs = $this->buildApplicationCrumbs(); 87 87 $crumbs->addTextCrumb(pht('Edit Profile')); 88 88 89 + $nav = $this->getProfileMenu(); 90 + $nav->selectFilter(PhabricatorPeopleProfilePanelEngine::PANEL_MANAGE); 91 + 89 92 return $this->newPage() 90 93 ->setTitle($title) 91 94 ->setCrumbs($crumbs) 95 + ->setNavigation($nav) 92 96 ->appendChild($form_box); 93 97 } 94 98 }
+6 -1
src/applications/people/controller/PhabricatorPeopleProfilePictureController.php
··· 22 22 } 23 23 24 24 $this->setUser($user); 25 + $name = $user->getUserName(); 25 26 26 - $done_uri = $this->getApplicationURI("manage/{$id}/"); 27 + $done_uri = '/p/'.$name.'/'; 27 28 28 29 $supported_formats = PhabricatorFile::getTransformableImageFormats(); 29 30 $e_file = true; ··· 251 252 $crumbs = $this->buildApplicationCrumbs(); 252 253 $crumbs->addTextCrumb(pht('Edit Profile Picture')); 253 254 255 + $nav = $this->getProfileMenu(); 256 + $nav->selectFilter(PhabricatorPeopleProfilePanelEngine::PANEL_MANAGE); 257 + 254 258 return $this->newPage() 255 259 ->setTitle($title) 256 260 ->setCrumbs($crumbs) 261 + ->setNavigation($nav) 257 262 ->appendChild( 258 263 array( 259 264 $form_box,
+2 -2
src/applications/project/controller/PhabricatorProjectEditPictureController.php
··· 23 23 24 24 $this->setProject($project); 25 25 26 - $edit_uri = $this->getApplicationURI('manage/'.$project->getID().'/'); 27 - $view_uri = $this->getApplicationURI('manage/'.$project->getID().'/'); 26 + $edit_uri = $this->getApplicationURI('profile/'.$project->getID().'/'); 27 + $view_uri = $this->getApplicationURI('profile/'.$project->getID().'/'); 28 28 29 29 $supported_formats = PhabricatorFile::getTransformableImageFormats(); 30 30 $e_file = true;