2006/unicorn/WebContent/WEB-INF/resources/templates xhtml10.vm,1.1.2.11,1.1.2.12

Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates
In directory hutz:/tmp/cvs-serv10636/WebContent/WEB-INF/resources/templates

Modified Files:
      Tag: dev2
	xhtml10.vm 
Log Message:
added icons


Index: xhtml10.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/Attic/xhtml10.vm,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -d -r1.1.2.11 -r1.1.2.12
--- xhtml10.vm	26 Aug 2009 18:17:09 -0000	1.1.2.11
+++ xhtml10.vm	27 Aug 2009 12:10:54 -0000	1.1.2.12
@@ -8,23 +8,37 @@
 
 #set($observationList = $unicorncall.ObservationList)
 
+
 <div id="result">
 #foreach($observationName in $observationList.keySet())
 <div class="observer $observationName">
 	#set($observation = $observationList.get($observationName))
+	#set ($infoCount = $observation.getInfoCount())
+	#set ($errorCount = $observation.getErrorCount())
+	#set ($warningCount = $observation.getWarningCount())
+	
 	#if($observation.isPassed())
 	<h2 class="valid">
 		$test_ok_1:
 		$unicorncall.getObserverName($observationName, $lang)
+		<span class="icons">
+			#if ($infoCount && $infoCount > 0)<img src="images/icone_info.png" alt="info icon" /><span>$infoCount</span> #end
+			#if ($errorCount && $errorCount > 0)<img src="images/icone_error.png" alt="error icon" /><span>$errorCount</span> #end
+			#if ($warningCount && $warningCount > 0)<img src="images/icone_warning.png" alt="warning icon" /><span>$warningCount</span> #end
+		</span>
 	</h2>
 	#else
 	<h2 class="invalid">
 		$test_fail_1: 
 		$unicorncall.getObserverName($observationName, $lang)
+		<span class="icons">
+			#if ($infoCount && $infoCount > 0)<img src="images/icone_info.png" alt="info icon" /><span>$infoCount</span> #end
+			#if ($errorCount && $errorCount > 0)<img src="images/icone_error.png" alt="error icon" /><span>$errorCount</span> #end
+			#if ($warningCount && $warningCount > 0)<img src="images/icone_warning.png" alt="warning icon" /><span>$warningCount</span> #end
+		</span>
 	</h2>
 	#end
 	
-	#set ($infoCount = $observation.getInfoCount())
 	#if ($infoCount && $infoCount > 0)
 		<div class="infos">
 		<h3>Infos ($infoCount)</h3>
@@ -58,7 +72,6 @@
 		</div>
 	#end
 	
-	#set ($errorCount = $observation.getErrorCount())
 	#if ($errorCount && $errorCount > 0)
 		<div class="errors">
 		<h3>Errors ($errorCount)</h3>
@@ -92,7 +105,6 @@
 		</div>
 	#end
 	
-	#set ($warningCount = $observation.getWarningCount())
 	#if ($warningCount && $warningCount > 0)
 		<div class="warnings">
 		<h3>Warnings ($warningCount)</h3>

Received on Thursday, 27 August 2009 12:11:05 UTC