3 final class PhabricatorProjectWatcherListView
4 extends PhabricatorProjectUserListView
{
6 protected function canEditList() {
7 $viewer = $this->getViewer();
8 $project = $this->getProject();
10 return PhabricatorPolicyFilter
::hasCapability(
13 PhabricatorPolicyCapability
::CAN_EDIT
);
16 protected function getNoDataString() {
17 return pht('This project does not have any watchers.');
20 protected function getRemoveURI($phid) {
21 $project = $this->getProject();
22 $id = $project->getID();
23 return "/project/watchers/{$id}/remove/?phid={$phid}";
26 protected function getHeaderText() {
27 return pht('Watchers');
30 protected function getMembershipNote() {
31 $viewer = $this->getViewer();
32 $viewer_phid = $viewer->getPHID();
33 $project = $this->getProject();
36 if ($project->isUserWatcher($viewer_phid)) {
37 $note = pht('You are watching this project and will receive mail about '.
38 'changes made to any related object.');