Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIListItemView.php
| Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | if ($this->disabled) { | ||||
| $classes[] = 'phui-list-item-disabled'; | $classes[] = 'phui-list-item-disabled'; | ||||
| } | } | ||||
| if ($this->statusColor) { | if ($this->statusColor) { | ||||
| $classes[] = $this->statusColor; | $classes[] = $this->statusColor; | ||||
| } | } | ||||
| return array( | return array( | ||||
| 'class' => $classes, | 'class' => implode(' ', $classes), | ||||
epriestley: I think there's maybe some magic on `AphrontTagView` which makes this unnecessary? Not sure. | |||||
| ); | ); | ||||
| } | } | ||||
| public function setDisabled($disabled) { | public function setDisabled($disabled) { | ||||
| $this->disabled = $disabled; | $this->disabled = $disabled; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| Show All 30 Lines | if ($this->name) { | ||||
| $classes[] = 'phui-list-item-name'; | $classes[] = 'phui-list-item-name'; | ||||
| if ($this->aural !== null) { | if ($this->aural !== null) { | ||||
| $classes[] = 'visual-only'; | $classes[] = 'visual-only'; | ||||
| } | } | ||||
| $name = phutil_tag( | $name = phutil_tag( | ||||
| 'span', | 'span', | ||||
| array( | array( | ||||
| 'class' => implode(' ', $classes), | 'class' => $classes, | ||||
| ), | ), | ||||
| array( | array( | ||||
| $this->name, | $this->name, | ||||
| $external, | $external, | ||||
| )); | )); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines | |||||
I think there's maybe some magic on AphrontTagView which makes this unnecessary? Not sure.