From: <gem...@li...> - 2013-04-10 08:51:26
|
Revision: 1217 http://sourceforge.net/p/gemstracker/code/1217 Author: mennodekker Date: 2013-04-10 08:51:22 +0000 (Wed, 10 Apr 2013) Log Message: ----------- Fixed round description to be only for rounds and not for other fields Modified Paths: -------------- trunk/library/classes/Gems/Snippets/Tracker/Compliance/ComplianceTableSnippet.php Modified: trunk/library/classes/Gems/Snippets/Tracker/Compliance/ComplianceTableSnippet.php =================================================================== --- trunk/library/classes/Gems/Snippets/Tracker/Compliance/ComplianceTableSnippet.php 2013-04-10 08:33:06 UTC (rev 1216) +++ trunk/library/classes/Gems/Snippets/Tracker/Compliance/ComplianceTableSnippet.php 2013-04-10 08:51:22 UTC (rev 1217) @@ -73,6 +73,7 @@ $th = $th_row->td(); $span = 1; $cRound = null; + $cDesc = null; $thead->tr(); if ($showMenuItem = $this->getShowMenuItem()) { @@ -91,20 +92,24 @@ } else { // If the round has an icon, show the icon else just 'R' since // complete round description messes up the display - if (!empty($cIcon)) { - $content = MUtil_Html_ImgElement::imgFile($cIcon, array( + $th->append($cDesc); + $th->title = $cRound; + $th->colspan = $span; + + $span = 1; + $cRound = $round; + if ($cIcon = $model->get($name, 'roundIcon')) { + $cDesc = MUtil_Html_ImgElement::imgFile($cIcon, array( 'alt' => $cRound, 'title' => $cRound )); } else { - $content = 'R'; + if (substr($name, 0, 5) == 'stat_') { + $cDesc = 'R'; + } else { + $cDesc = null; + } } - $th->append($content); - $th->title = $cRound; - $th->colspan = $span; - - $span = 1; - $cRound = $round; $cIcon = $model->get($name, 'roundIcon'); $class = 'newRound'; $thClass = $class .' ' . $alternateClass; // Add alternate class only for th This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |