paths = $paths; return $this; } public function render() { $request = $this->getDiffusionRequest(); $base_path = trim($request->getPath(), '/'); if ($base_path) { $base_path = $base_path.'/'; } $rows = array(); foreach ($this->paths as $path) { if ($path->getFileType() == DifferentialChangeType::FILE_DIRECTORY) { $browse_text = $path->getPath().'/'; $dir_slash = '/'; } else { $browse_text = $path->getPath(); $dir_slash = null; } $rows[] = array( $this->linkHistory($base_path.$path->getPath().$dir_slash), $this->linkBrowse( $base_path.$path->getPath().$dir_slash, array( 'text' => $browse_text, )), ); } $view = new AphrontTableView($rows); $view->setHeaders( array( 'History', 'Path', )); $view->setColumnClasses( array( '', 'wide pri', )); return $view->render(); } }