Remove product literal strings in "pht()", part 18
[phabricator.git] / src / applications / project / view / PhabricatorProjectWatcherListView.php
blob2d16cc7ec2dcfed4c2c214faf4e7bcc4a6a6d01e
1 <?php
3 final class PhabricatorProjectWatcherListView
4 extends PhabricatorProjectUserListView {
6 protected function canEditList() {
7 $viewer = $this->getViewer();
8 $project = $this->getProject();
10 return PhabricatorPolicyFilter::hasCapability(
11 $viewer,
12 $project,
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();
35 $note = null;
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.');
40 return $note;