mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 23:01:04 +01:00
Hide Audit information on Home when the application is uninstalled
Test Plan: Looked at Home with Audit installed and uninstalled. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7277
This commit is contained in:
parent
f4582dc49d
commit
e3005fad09
1 changed files with 10 additions and 2 deletions
|
@ -41,15 +41,23 @@ final class PhabricatorDirectoryMainController
|
|||
$tasks_panel = null;
|
||||
}
|
||||
|
||||
$audit = 'PhabricatorApplicationAudit';
|
||||
if (PhabricatorApplication::isClassInstalled($audit)) {
|
||||
$audit_panel = $this->buildAuditPanel();
|
||||
$commit_panel = $this->buildCommitPanel();
|
||||
} else {
|
||||
$audit_panel = null;
|
||||
$commit_panel = null;
|
||||
}
|
||||
|
||||
if (PhabricatorEnv::getEnvConfig('welcome.html') !== null) {
|
||||
$welcome_panel = $this->buildWelcomePanel();
|
||||
} else {
|
||||
$welcome_panel = null;
|
||||
}
|
||||
|
||||
$jump_panel = $this->buildJumpPanel();
|
||||
$revision_panel = $this->buildRevisionPanel();
|
||||
$audit_panel = $this->buildAuditPanel();
|
||||
$commit_panel = $this->buildCommitPanel();
|
||||
|
||||
$content = array(
|
||||
$jump_panel,
|
||||
|
|
Loading…
Reference in a new issue