mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-26 22:48:19 +01:00
Show change details for "Remarkup" standard custom field edits
Summary: Fixes T7436. Test Plan: {F328222} Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T7436 Differential Revision: https://secure.phabricator.com/D11952
This commit is contained in:
parent
bb342c60e2
commit
e1d09fd035
1 changed files with 14 additions and 3 deletions
|
@ -50,15 +50,26 @@ final class PhabricatorStandardCustomFieldRemarkup
|
||||||
public function getApplicationTransactionTitle(
|
public function getApplicationTransactionTitle(
|
||||||
PhabricatorApplicationTransaction $xaction) {
|
PhabricatorApplicationTransaction $xaction) {
|
||||||
$author_phid = $xaction->getAuthorPHID();
|
$author_phid = $xaction->getAuthorPHID();
|
||||||
|
|
||||||
// TODO: Expose fancy transactions.
|
|
||||||
|
|
||||||
return pht(
|
return pht(
|
||||||
'%s edited %s.',
|
'%s edited %s.',
|
||||||
$xaction->renderHandleLink($author_phid),
|
$xaction->renderHandleLink($author_phid),
|
||||||
$this->getFieldName());
|
$this->getFieldName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getApplicationTransactionHasChangeDetails(
|
||||||
|
PhabricatorApplicationTransaction $xaction) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getApplicationTransactionChangeDetails(
|
||||||
|
PhabricatorApplicationTransaction $xaction,
|
||||||
|
PhabricatorUser $viewer) {
|
||||||
|
return $xaction->renderTextCorpusChangeDetails(
|
||||||
|
$viewer,
|
||||||
|
$xaction->getOldValue(),
|
||||||
|
$xaction->getNewValue());
|
||||||
|
}
|
||||||
|
|
||||||
public function shouldAppearInHerald() {
|
public function shouldAppearInHerald() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue