Differential D25548 Diff 1734 src/applications/differential/customfield/DifferentialRepositoryField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialRepositoryField.php
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | if ($repository === null) { | ||||
return; | return; | ||||
} | } | ||||
$body->addTextSection( | $body->addTextSection( | ||||
pht('REPOSITORY'), | pht('REPOSITORY'), | ||||
$repository->getMonogram().' '.$repository->getName()); | $repository->getMonogram().' '.$repository->getName()); | ||||
} | } | ||||
public function shouldAppearInListView() { | |||||
return true; | |||||
} | |||||
public function renderOnListItem(PHUIObjectItemView $view) { | |||||
$handle = $this->getViewer()->renderHandle($this->getValue()); | |||||
$view->addByLine(pht('Repository: %s', $handle)); | |||||
valerio.bozzolan: Probably this should be wrapped in `if ($this->getValue()) {` | |||||
} | |||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0
Probably this should be wrapped in if ($this->getValue()) {