Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/view/PHUIDiffTableOfContentsItemView.php
| <?php | <?php | ||||
| final class PHUIDiffTableOfContentsItemView extends AphrontView { | final class PHUIDiffTableOfContentsItemView extends AphrontView { | ||||
| private $changeset; | private $changeset; | ||||
| private $isVisible; | private $isVisible = true; | ||||
| private $anchor; | private $anchor; | ||||
| private $coverage; | private $coverage; | ||||
| private $coverageID; | private $coverageID; | ||||
| public function setChangeset(DifferentialChangeset $changeset) { | public function setChangeset(DifferentialChangeset $changeset) { | ||||
| $this->changeset = $changeset; | $this->changeset = $changeset; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | private function renderPathChangeCharacter() { | ||||
| $color = DifferentialChangeType::getSummaryColorForChangeType($type); | $color = DifferentialChangeType::getSummaryColorForChangeType($type); | ||||
| $char = DifferentialChangeType::getSummaryCharacterForChangeType($type); | $char = DifferentialChangeType::getSummaryCharacterForChangeType($type); | ||||
| $title = DifferentialChangeType::getFullNameForChangeType($type); | $title = DifferentialChangeType::getFullNameForChangeType($type); | ||||
| return javelin_tag( | return javelin_tag( | ||||
| 'span', | 'span', | ||||
| array( | array( | ||||
| 'sigil' => 'has-tip', | 'sigil' => 'has-tooltip', | ||||
| 'meta' => array( | 'meta' => array( | ||||
| 'tip' => $title, | 'tip' => $title, | ||||
| 'align' => 'E', | 'align' => 'E', | ||||
| ), | ), | ||||
| 'class' => 'phui-text-'.$color, | 'class' => 'phui-text-'.$color, | ||||
| ), | ), | ||||
| $char); | $char); | ||||
| } | } | ||||
| private function renderPropertyChangeCharacter() { | private function renderPropertyChangeCharacter() { | ||||
| $changeset = $this->getChangeset(); | $changeset = $this->getChangeset(); | ||||
| $old = $changeset->getOldProperties(); | $old = $changeset->getOldProperties(); | ||||
| $new = $changeset->getNewProperties(); | $new = $changeset->getNewProperties(); | ||||
| if ($old === $new) { | if ($old === $new) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| return javelin_tag( | return javelin_tag( | ||||
| 'span', | 'span', | ||||
| array( | array( | ||||
| 'sigil' => 'has-tip', | 'sigil' => 'has-tooltip', | ||||
| 'meta' => array( | 'meta' => array( | ||||
| 'tip' => pht('Properties Modified'), | 'tip' => pht('Properties Modified'), | ||||
| 'align' => 'E', | 'align' => 'E', | ||||
| 'size' => 200, | |||||
| ), | ), | ||||
| ), | ), | ||||
| 'M'); | 'M'); | ||||
| } | } | ||||
| private function renderPropertyChangeDescription() { | private function renderPropertyChangeDescription() { | ||||
| $changeset = $this->getChangeset(); | $changeset = $this->getChangeset(); | ||||
| ▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines | |||||