Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/view/PhabricatorMetaMTAMailBody.php
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | /* -( Composition )-------------------------------------------------------- */ | ||||
public function addLinkSection($header, $link) { | public function addLinkSection($header, $link) { | ||||
$html = phutil_tag('a', array('href' => $link), $link); | $html = phutil_tag('a', array('href' => $link), $link); | ||||
$this->addPlaintextSection($header, $link); | $this->addPlaintextSection($header, $link); | ||||
$this->addHTMLSection($header, $html); | $this->addHTMLSection($header, $html); | ||||
return $this; | return $this; | ||||
} | } | ||||
/** | |||||
* Add a Herald section with a rule management URI and a transcript URI. | |||||
* | |||||
* @param string URI to rule transcripts. | |||||
* @return this | |||||
* @task compose | |||||
*/ | |||||
public function addHeraldSection($xscript_uri) { | |||||
if (!PhabricatorEnv::getEnvConfig('metamta.herald.show-hints')) { | |||||
return $this; | |||||
} | |||||
$this->addLinkSection( | |||||
pht('WHY DID I GET THIS EMAIL?'), | |||||
PhabricatorEnv::getProductionURI($xscript_uri)); | |||||
return $this; | |||||
} | |||||
/** | /** | ||||
* Add an attachment. | * Add an attachment. | ||||
* | * | ||||
* @param PhabricatorMetaMTAAttachment Attachment. | * @param PhabricatorMetaMTAAttachment Attachment. | ||||
* @return this | * @return this | ||||
* @task compose | * @task compose | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |