Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/view/ReleephRequestView.php
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | switch ($pull->getStatus()) { | ||||
default: | default: | ||||
$icon = 'question'; | $icon = 'question'; | ||||
$color = null; | $color = null; | ||||
break; | break; | ||||
} | } | ||||
$text = ReleephRequestStatus::getStatusDescriptionFor($pull->getStatus()); | $text = ReleephRequestStatus::getStatusDescriptionFor($pull->getStatus()); | ||||
$header->setStatus($icon, $color, $text); | $header->setStatus($icon, $color, $text); | ||||
if ($this->getIsListView()) { | |||||
$header->setObjectName($pull->getMonogram()); | |||||
} | |||||
return $header; | return $header; | ||||
} | } | ||||
private function buildActionList(ReleephRequest $pull) { | private function buildActionList(ReleephRequest $pull) { | ||||
$viewer = $this->getUser(); | $viewer = $this->getUser(); | ||||
$id = $pull->getID(); | $id = $pull->getID(); | ||||
$edit_uri = '/releeph/request/edit/'.$id.'/'; | $edit_uri = '/releeph/request/edit/'.$id.'/'; | ||||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |