Edit/Delete for inline comments

This commit is contained in:
epriestley
2011-02-02 10:10:25 -08:00
parent 759eec3a77
commit c5ce156e71
9 changed files with 186 additions and 72 deletions

View File

@@ -71,7 +71,13 @@ class DifferentialChangesetViewController extends DifferentialController {
$engine = $factory->newDifferentialCommentMarkupEngine();
$parser->setMarkupEngine($engine);
$output = $parser->render(null, $range_s, $range_e, $mask);
if ($request->isAjax()) {
// TODO: This is sort of lazy, the effect is just to not render "Edit"
// links on the "standalone view".
$parser->setUser($request->getUser());
}
$output = $parser->render($range_s, $range_e, $mask);
if ($request->isAjax()) {
return id(new AphrontAjaxResponse())