Very basic Phriction history view

Summary: Provide a (mostly useless, currently) table of document edits.
Test Plan: Looked at document history for several of my high-quality sandbox
wiki pages.
Reviewed By: hsb
Reviewers: hsb, codeblock, jungejason, aran, tuomaspelkonen
CC: aran, hsb
Differential Revision: 644
This commit is contained in:
epriestley
2011-07-11 15:06:19 -07:00
parent 5704b2bc70
commit 7c21068c9f
8 changed files with 167 additions and 6 deletions

View File

@@ -27,6 +27,24 @@ abstract class PhrictionController extends PhabricatorController {
$page->setTitle(idx($data, 'title'));
$page->setGlyph("\xE2\x9A\xA1");
$tabs = array();
if (!empty($data['document'])) {
$tabs['document'] = array(
'name' => 'Document',
'href' => $data['document'],
);
}
if (!empty($data['history'])) {
$tabs['history'] = array(
'name' => 'History',
'href' => $data['history'],
);
}
if (!empty($tabs)) {
$page->setTabs($tabs, idx($data, 'tab'));
}
$page->appendChild($view);
$response = new AphrontWebpageResponse();