Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/view/ConpherenceThreadListView.php
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | $item = id(new PHUIListItemView()) | ||||
->addSigil('conpherence-menu-scroller') | ->addSigil('conpherence-menu-scroller') | ||||
->setName($name) | ->setName($name) | ||||
->setHref($this->baseURI) | ->setHref($this->baseURI) | ||||
->setType(PHUIListItemView::TYPE_BUTTON) | ->setType(PHUIListItemView::TYPE_BUTTON) | ||||
->setMetadata(array( | ->setMetadata(array( | ||||
'participant_id' => $participant->getID(), | 'participant_id' => $participant->getID(), | ||||
'conpherence_phid' => $participant->getConpherencePHID(), | 'conpherence_phid' => $participant->getConpherencePHID(), | ||||
'date_touched' => $participant->getDateTouched(), | 'date_touched' => $participant->getDateTouched(), | ||||
'direction' => $direction)); | 'direction' => $direction, | ||||
)); | |||||
return $item; | return $item; | ||||
} | } | ||||
private function getNoConpherencesMenuItem() { | private function getNoConpherencesMenuItem() { | ||||
$message = phutil_tag( | $message = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'no-conpherences-menu-item' | 'class' => 'no-conpherences-menu-item', | ||||
), | ), | ||||
pht('No conpherences.')); | pht('No conpherences.')); | ||||
return id(new PHUIListItemView()) | return id(new PHUIListItemView()) | ||||
->setType(PHUIListItemView::TYPE_CUSTOM) | ->setType(PHUIListItemView::TYPE_CUSTOM) | ||||
->setName($message); | ->setName($message); | ||||
} | } | ||||
} | } |