mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-16 03:42:41 +01:00
40547030a5
Summary: Converts callsites in PropertyListView (addDetail() and setTextContent()). Test Plan: Grepped for PhabricatorPropertyListView, addDetail() and setTextContent(). Reviewers: vrana Reviewed By: vrana CC: aran Maniphest Tasks: T2432 Differential Revision: https://secure.phabricator.com/D4695
23 lines
491 B
PHP
23 lines
491 B
PHP
<?php
|
|
|
|
final class DifferentialHostFieldSpecification
|
|
extends DifferentialFieldSpecification {
|
|
|
|
public function shouldAppearOnRevisionView() {
|
|
return PhabricatorEnv::getEnvConfig('differential.show-host-field');
|
|
}
|
|
|
|
public function renderLabelForRevisionView() {
|
|
return 'Host:';
|
|
}
|
|
|
|
public function renderValueForRevisionView() {
|
|
$diff = $this->getManualDiff();
|
|
$host = $diff->getSourceMachine();
|
|
if (!$host) {
|
|
return null;
|
|
}
|
|
return $host;
|
|
}
|
|
|
|
}
|