Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/view/PhabricatorMetaMTAMailBody.php
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | public function addTextSection($header, $text) { | ||||
| $this->sections[] = $header."\n".$this->indent($text); | $this->sections[] = $header."\n".$this->indent($text); | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| /** | /** | ||||
| * Add a Herald section with a rule management URI and a transcript URI. | * Add a Herald section with a rule management URI and a transcript URI. | ||||
| * | * | ||||
| * @param string URI to rule management. | |||||
| * @param string URI to rule transcripts. | * @param string URI to rule transcripts. | ||||
| * @return this | * @return this | ||||
| * @task compose | * @task compose | ||||
| */ | */ | ||||
| public function addHeraldSection($rules_uri, $xscript_uri) { | public function addHeraldSection($xscript_uri) { | ||||
| if (!PhabricatorEnv::getEnvConfig('metamta.herald.show-hints')) { | if (!PhabricatorEnv::getEnvConfig('metamta.herald.show-hints')) { | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| $this->addTextSection( | $this->addTextSection( | ||||
| pht('MANAGE HERALD RULES'), | |||||
| PhabricatorEnv::getProductionURI($rules_uri)); | |||||
| $this->addTextSection( | |||||
| pht('WHY DID I GET THIS EMAIL?'), | pht('WHY DID I GET THIS EMAIL?'), | ||||
| PhabricatorEnv::getProductionURI($xscript_uri)); | PhabricatorEnv::getProductionURI($xscript_uri)); | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines | |||||