mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Added Local Version Property to /config/all
Summary: Fixed T2349 Test Plan: Temporarily added a VERSION file with some text and it rendered it correctly. Reviewers: epriestley CC: aran, Korvin Maniphest Tasks: T2349 Differential Revision: https://secure.phabricator.com/D4544
This commit is contained in:
parent
f0682941b6
commit
49679a6b79
1 changed files with 8 additions and 2 deletions
|
@ -68,8 +68,14 @@ final class PhabricatorConfigAllController
|
||||||
$display_version = pht('Unknown');
|
$display_version = pht('Unknown');
|
||||||
}
|
}
|
||||||
$version_property_list = id(new PhabricatorPropertyListView());
|
$version_property_list = id(new PhabricatorPropertyListView());
|
||||||
$version_property_list->addProperty('Version', $display_version);
|
$version_property_list->addProperty('Version',
|
||||||
|
phutil_escape_html($display_version));
|
||||||
|
$version_path = $phabricator_root.'/conf/local/VERSION';
|
||||||
|
if (Filesystem::pathExists($version_path)) {
|
||||||
|
$version_from_file = Filesystem::readFile($version_path);
|
||||||
|
$version_property_list->addProperty('Local Version',
|
||||||
|
phutil_escape_html($version_from_file));
|
||||||
|
}
|
||||||
|
|
||||||
$nav = $this->buildSideNavView();
|
$nav = $this->buildSideNavView();
|
||||||
$nav->selectFilter('all/');
|
$nav->selectFilter('all/');
|
||||||
|
|
Loading…
Reference in a new issue