Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIObjectItemView.php
| Show First 20 Lines • Show All 810 Lines • ▼ Show 20 Lines | $frame_content = phutil_tag( | ||||
| 'class' => 'phui-oi-frame-content', | 'class' => 'phui-oi-frame-content', | ||||
| ), | ), | ||||
| array( | array( | ||||
| $actions, | $actions, | ||||
| $image, | $image, | ||||
| $box, | $box, | ||||
| )); | )); | ||||
| if ($this->menu) { | |||||
| $grid_view = id(new FuelGridView()) | |||||
| ->addClass('fuel-grid-tablet'); | |||||
| $grid_row = $grid_view->newRow(); | |||||
| $grid_row->newCell() | |||||
| ->setContent($frame_content); | |||||
| $menu = $this->menu; | |||||
| $grid_row->newCell() | |||||
| ->addClass('phui-oi-menu') | |||||
| ->setContent($menu); | |||||
| $frame_content = $grid_view; | |||||
| } | |||||
| $frame_cover = null; | $frame_cover = null; | ||||
| if ($this->coverImage) { | if ($this->coverImage) { | ||||
| $cover_image = phutil_tag( | $cover_image = phutil_tag( | ||||
| 'img', | 'img', | ||||
| array( | array( | ||||
| 'src' => $this->coverImage, | 'src' => $this->coverImage, | ||||
| 'class' => 'phui-oi-cover-image', | 'class' => 'phui-oi-cover-image', | ||||
| )); | )); | ||||
| Show All 11 Lines | $frame = phutil_tag( | ||||
| array( | array( | ||||
| 'class' => 'phui-oi-frame', | 'class' => 'phui-oi-frame', | ||||
| ), | ), | ||||
| array( | array( | ||||
| $frame_cover, | $frame_cover, | ||||
| $frame_content, | $frame_content, | ||||
| )); | )); | ||||
| $grid_view = id(new FuelGridView()) | return $frame; | ||||
| ->addClass('fuel-grid-tablet'); | |||||
| $grid_row = $grid_view->newRow(); | |||||
| $grid_row->newCell() | |||||
| ->setContent($frame); | |||||
| if ($this->menu) { | |||||
| $menu = $this->menu; | |||||
| $grid_row->newCell() | |||||
| ->addClass('phui-oi-menu') | |||||
| ->setContent($menu); | |||||
| } | |||||
| return $grid_view; | |||||
| } | } | ||||
| private function renderStatusIcon($icon, $label) { | private function renderStatusIcon($icon, $label) { | ||||
| Javelin::initBehavior('phabricator-tooltips'); | Javelin::initBehavior('phabricator-tooltips'); | ||||
| $icon = id(new PHUIIconView()) | $icon = id(new PHUIIconView()) | ||||
| ->setIcon($icon); | ->setIcon($icon); | ||||
| Show All 30 Lines | |||||