Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/view/DiffusionBrowseTableView.php
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | foreach ($this->paths as $path) { | ||||
| $dict[$k] = phutil_tag('span', array('id' => $uniq), ''); | $dict[$k] = phutil_tag('span', array('id' => $uniq), ''); | ||||
| } | } | ||||
| $rows[] = array( | $rows[] = array( | ||||
| $history_link, | $history_link, | ||||
| $browse_link, | $browse_link, | ||||
| idx($dict, 'lint'), | idx($dict, 'lint'), | ||||
| $dict['commit'], | $dict['commit'], | ||||
| $dict['author'], | |||||
| $dict['details'], | $dict['details'], | ||||
| $dict['date'], | $dict['date'], | ||||
| ); | ); | ||||
| } | } | ||||
| if ($need_pull) { | if ($need_pull) { | ||||
| Javelin::initBehavior( | Javelin::initBehavior( | ||||
| 'diffusion-pull-lastmodified', | 'diffusion-pull-lastmodified', | ||||
| Show All 13 Lines | public function render() { | ||||
| $view = new AphrontTableView($rows); | $view = new AphrontTableView($rows); | ||||
| $view->setHeaders( | $view->setHeaders( | ||||
| array( | array( | ||||
| null, | null, | ||||
| pht('Path'), | pht('Path'), | ||||
| ($lint ? $lint : pht('Lint')), | ($lint ? $lint : pht('Lint')), | ||||
| pht('Modified'), | pht('Modified'), | ||||
| pht('Author/Committer'), | |||||
| pht('Details'), | pht('Details'), | ||||
| pht('Committed'), | pht('Committed'), | ||||
| )); | )); | ||||
| $view->setColumnClasses( | $view->setColumnClasses( | ||||
| array( | array( | ||||
| 'nudgeright', | 'nudgeright', | ||||
| '', | '', | ||||
| '', | '', | ||||
| '', | '', | ||||
| '', | |||||
| 'wide', | 'wide', | ||||
| '', | '', | ||||
| )); | )); | ||||
| $view->setColumnVisibility( | $view->setColumnVisibility( | ||||
| array( | array( | ||||
| true, | true, | ||||
| true, | true, | ||||
| $show_lint, | $show_lint, | ||||
| true, | true, | ||||
| true, | true, | ||||
| true, | true, | ||||
| true, | |||||
| )); | )); | ||||
| $view->setDeviceVisibility( | $view->setDeviceVisibility( | ||||
| array( | array( | ||||
| true, | true, | ||||
| true, | true, | ||||
| false, | false, | ||||
| true, | |||||
| false, | false, | ||||
| true, | true, | ||||
| false, | false, | ||||
| )); | )); | ||||
| return $view->render(); | return $view->render(); | ||||
| } | } | ||||
| } | } | ||||