Render an edit link in Diffusion directory views

Summary:
If the user has an editor configured, an Edit link appears next
to the History link.

Somewhat suboptimally, the column is still there if there are no edit
links, it's just empty. I don't know if it matters...

Test Plan: Load Diffusion pages while changing editor setting in preferences.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin, avivey

Maniphest Tasks: T1558

Differential Revision: https://secure.phabricator.com/D3124
This commit is contained in:
Alan Huang
2012-08-02 12:22:50 -07:00
parent 9a19cfb9de
commit ce8bcf887d
3 changed files with 41 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ final class DiffusionRepositoryController extends DiffusionController {
$browse_table->setDiffusionRequest($drequest);
$browse_table->setHandles($handles);
$browse_table->setPaths($browse_results);
$browse_table->setUser($this->getRequest()->getUser());
$browse_panel = new AphrontPanelView();
$browse_panel->setHeader('Browse Repository');