From 5a75d486473f91f69c4c33f89c21713dda2b7d2a Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Tue, 12 Jan 2010 21:10:08 +0000 Subject: [PATCH] - Added display of the version / revision and build date for "official builds" - Fixed the display of the triangle image of the "collapsible section" when it is initially "open" SVN:trunk[244] --- application/itopwebpage.class.inc.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index dfe51047e..16e897823 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -262,8 +262,18 @@ EOF echo "\n"; // Display the header + if (ITOP_REVISION == '$WCREV$') + { + // This is NOT a version built using the buil system, just display the main version + $sVersionString = "iTop Version ".ITOP_VERSION; + } + else + { + // This is a build made from SVN, let display the full information + $sVersionString = "iTop Version ".ITOP_VERSION." revision ".ITOP_REVISION.", built on: ".ITOP_BUILD_DATE; + } echo "
\n"; - echo "
iTop
\n"; + echo "
iTop
\n"; //echo "
\n"; $sText = Utils::ReadParam('text', ''); $sOnClick = ""; @@ -384,7 +394,8 @@ EOF { $sHtml = ''; static $iSectionId = 0; - $sHtml .= "$sSectionLabel
\n"; + $sImgStyle = $bOpen ? ' open' : ''; + $sHtml .= "$sSectionLabel
\n"; $sStyle = $bOpen ? '' : 'style="display:none" '; $sHtml .= "
"; $this->add_ready_script("\$(\"#LnkCollapse_$iSectionId\").click(function() {\$(\"#Collapse_$iSectionId\").slideToggle('normal'); $(\"#LnkCollapse_$iSectionId\").toggleClass('open');});");