Bring in JX.Workflow and the inline commenting behavior, plus sync Javelin.

This commit is contained in:
epriestley
2011-02-01 15:52:04 -08:00
parent 4faad5b3f1
commit 9dac0ed9f1
26 changed files with 934 additions and 246 deletions

View File

@@ -19,12 +19,24 @@
class DifferentialChangesetListView extends AphrontView {
private $changesets = array();
private $editable;
private $revision;
public function setChangesets($changesets) {
$this->changesets = $changesets;
return $this;
}
public function setEditable($editable) {
$this->editable = $editable;
return $this;
}
public function setRevision(DifferentialRevision $revision) {
$this->revision = $revision;
return $this;
}
public function render() {
require_celerity_resource('differential-changeset-view-css');
@@ -105,20 +117,14 @@ class DifferentialChangesetListView extends AphrontView {
Javelin::initBehavior('differential-show-more', array(
'uri' => '/differential/changeset/',
));
/*
Javelin::initBehavior('differential-context', array(
'uri' => $render_uri,
));
if ($edit) {
require_static('remarkup-css');
Javelin::initBehavior('differential-inline', array(
'uri' => '/differential/feedback/'.$revision->getID().'/',
if ($this->editable) {
$revision = $this->revision;
Javelin::initBehavior('differential-edit-inline-comments', array(
'uri' => '/differential/inline/edit/'.$revision->getID().'/',
));
}
*/
return
'<div class="differential-review-stage">'.
implode("\n", $output).