changeset = $changeset; return $this; } public function addButton($button) { $this->buttons[] = $button; return $this; } public function render() { require_celerity_resource('differential-changeset-view-css'); require_celerity_resource('syntax-highlighting-css'); $edit = false; // TODO $changeset = $this->changeset; $class = 'differential-changeset'; if (!$edit) { $class .= ' differential-changeset-immutable'; } $display_filename = $changeset->getDisplayFilename(); $output = javelin_render_tag( 'div', array( 'sigil' => 'differential-changeset', 'class' => $class, ), ''. implode('', $this->buttons). '

'.phutil_escape_html($display_filename).'

'. '
'. $this->renderChildren()); return $output; } }