W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2010

2006/unicorn/WebContent/WEB-INF/resources/templates language.vm,1.18,1.19

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 05 Mar 2010 13:50:42 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1NnXvO-0004NW-Th@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates
In directory hutz:/tmp/cvs-serv16811/WebContent/WEB-INF/resources/templates

Modified Files:
	language.vm 
Log Message:
added tasklist properties to the table

Index: language.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/language.vm,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- language.vm	22 Oct 2009 15:20:55 -0000	1.18
+++ language.vm	5 Mar 2010 13:50:40 -0000	1.19
@@ -57,7 +57,7 @@
 			<tr>
 				<th scope="col">Property</th>
 			#foreach($prop in $languageProps)
-				#set($percent = 100 * $math.div($math.sub($prop.size(), 2), $math.sub($defaultProps.size(), 2)))
+				#set($percent = 100 * $math.div($math.sub($math.add($prop.size(), $metadataProps.get($prop.get('lang')).size()), 4), $math.sub($math.add($defaultProps.size(), $defaultMetadata.size()), 4)))
 				<th scope="col">$prop.get("language")<br />$percent.intValue()% <a href="./translations?ucn_lang=$prop.get('lang')">Edit</a></th>
 			#end
 			</tr>
@@ -77,6 +77,20 @@
 				</tr>
 				#end
 			#end
+			#foreach($key in $defaultMetadata.keySet())
+				#if ($key != "lang" && $key != "language")
+				<tr>
+					<th class="property_name" scope="row">$key <p>$esc.html($defaultMetadata.get($key))</p></th>
+					#foreach($meta in $metadataProps)
+						#if($meta.get($key))
+						<td class="ok"><span xml:lang="$meta.get('lang')" #if($meta.get($key))title="$!esc.html($meta.get($key))"#end>✔</span></td>
+						#{else}
+						<td class="missing"><span #if($meta.get($key))title="$!esc.html($meta.get($key))"#end><a href="./translations?ucn_lang=$meta.get('lang')">✘</a></span></td>
+						#end
+					#end
+				</tr>
+				#end
+			#end
 		</tbody>
 	</table>
 </div>
Received on Friday, 5 March 2010 13:50:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:19 GMT