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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user