W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2009

2006/unicorn/WebContent/WEB-INF/resources/templates language.vm,1.2,1.3

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 05 Oct 2009 13:08:17 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MunIX-0006xT-70@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates
In directory hutz:/tmp/cvs-serv26729/WebContent/WEB-INF/resources/templates

Modified Files:
	language.vm 
Log Message:
displays percentages

Index: language.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/language.vm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- language.vm	5 Oct 2009 10:50:29 -0000	1.2
+++ language.vm	5 Oct 2009 13:08:15 -0000	1.3
@@ -7,23 +7,26 @@
 		<thead>
 			<tr>
 				<th scope="col">Property</th>
-				#foreach($prop in $languageProps)
-				<th scope="col">$prop.get("language")</th>
-				#end
+			#foreach($prop in $languageProps)
+				#set($percent = 100 * $math.div($prop.size(), $defaultProps.size()))
+				<th scope="col">$prop.get("language")<br />$percent.intValue()%</th>
+			#end
 			</tr>
 		</thead>
 		<tbody>
 			#foreach($key in $defaultProps.keySet())
+				#if ($key != "lang" && $key != "language")
 				<tr>
 					<th class="property_name" scope="row">$key <p>$esc.html($defaultProps.get($key))</p></th>
 					#foreach($prop in $languageProps)
 						#if($prop.get($key))
-						<td class="ok" title="$!esc.html($prop.get($key))">✔</td>
+						<td class="ok"><span #if($prop.get($key))title="$!esc.html($prop.get($key))"#end>✔</span></td>
 						#{else}
-						<td class="missing" title="$!esc.html($prop.get($key))">✘</td>
+						<td class="missing"><span #if($prop.get($key))title="$!esc.html($prop.get($key))"#end>✘</span></td>
 						#end
 					#end
 				</tr>
+				#end
 			#end
 		</tbody>
 	</table>
Received on Monday, 5 October 2009 13:08:18 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC