mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Add a "Rule Detail" link to Herald email
Summary: See PHI285. Ref T13130. After recent changes Herald sends email about rules, but the mail doesn't currently actually include a link to the rule. Include a link for consistency and ease-of-use. Test Plan: Edited a rule, looked at the resulting mail, saw a link to the rule. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13130 Differential Revision: https://secure.phabricator.com/D19413
This commit is contained in:
parent
9a0dd55442
commit
ef48a2b2ee
2 changed files with 18 additions and 0 deletions
|
@ -137,4 +137,18 @@ final class HeraldRuleEditor
|
|||
return pht('[Herald]');
|
||||
}
|
||||
|
||||
|
||||
protected function buildMailBody(
|
||||
PhabricatorLiskDAO $object,
|
||||
array $xactions) {
|
||||
|
||||
$body = parent::buildMailBody($object, $xactions);
|
||||
|
||||
$body->addLinkSection(
|
||||
pht('RULE DETAIL'),
|
||||
PhabricatorEnv::getProductionURI($object->getURI()));
|
||||
|
||||
return $body;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -254,6 +254,10 @@ final class HeraldRule extends HeraldDAO
|
|||
return 'H'.$this->getID();
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return '/'.$this->getMonogram();
|
||||
}
|
||||
|
||||
|
||||
/* -( Repetition Policies )------------------------------------------------ */
|
||||
|
||||
|
|
Loading…
Reference in a new issue