Differential D16048 Diff 38616 src/applications/people/controller/PhabricatorPeopleProfileManageController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/controller/PhabricatorPeopleProfileManageController.php
| Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | $curtain->addAction( | ||||
| ->setWorkflow(!$can_edit)); | ->setWorkflow(!$can_edit)); | ||||
| $curtain->addAction( | $curtain->addAction( | ||||
| id(new PhabricatorActionView()) | id(new PhabricatorActionView()) | ||||
| ->setIcon('fa-wrench') | ->setIcon('fa-wrench') | ||||
| ->setName(pht('Edit Settings')) | ->setName(pht('Edit Settings')) | ||||
| ->setDisabled(!$can_edit) | ->setDisabled(!$can_edit) | ||||
| ->setWorkflow(!$can_edit) | ->setWorkflow(!$can_edit) | ||||
| ->setHref('/settings/'.$user->getID().'/')); | ->setHref('/settings/user/'.$user->getUsername().'/')); | ||||
| if ($user->getIsAdmin()) { | if ($user->getIsAdmin()) { | ||||
| $empower_icon = 'fa-arrow-circle-o-down'; | $empower_icon = 'fa-arrow-circle-o-down'; | ||||
| $empower_name = pht('Remove Administrator'); | $empower_name = pht('Remove Administrator'); | ||||
| } else { | } else { | ||||
| $empower_icon = 'fa-arrow-circle-o-up'; | $empower_icon = 'fa-arrow-circle-o-up'; | ||||
| $empower_name = pht('Make Administrator'); | $empower_name = pht('Make Administrator'); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||