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

2006/unicorn/WebContent/WEB-INF/resources/templates xhtml10.vm,1.50,1.51

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 18 May 2010 09:54:33 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1OEJVR-00031Z-Cp@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates
In directory hutz:/tmp/cvs-serv11604/WebContent/WEB-INF/resources/templates

Modified Files:
	xhtml10.vm 
Log Message:
default favicon if the observation is undef

Index: xhtml10.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/xhtml10.vm,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- xhtml10.vm	14 May 2010 15:40:26 -0000	1.50
+++ xhtml10.vm	18 May 2010 09:54:31 -0000	1.51
@@ -1,10 +1,12 @@
 #set ($title = "$ucn.evaluate($lang, 'result_for', $unicorncall.DocumentName)")
 #set ($css = ['base_ucn-yc.css'])
 #set ($js = ['mootools-1.2.3-core-more-yc.js', 'w3c_unicorn_results-yc.js'])
-#if ($unicorncall.isPassed())
+#if ($unicorncall.getStatus() == "passed")
 #set ($fav = "favicon_green.ico")
-#else
+#elseif ($unicorncall.getStatus() == "failed")
 #set ($fav = "favicon_red.ico")
+#elseif ($unicorncall.getStatus() == "undef")
+#set ($fav = "favicon.ico")
 #end
 #parse('includes/head.vm')
 
@@ -53,7 +55,7 @@
 	#if ($observation.hasGroups())
 		#foreach($group in $observation.getGroups()) #if (!$group.hasParent())
 		<div class="section group" id="${observationName}_${group.Name}">
-			<h3 class="title" #if($group.getLang()!=$observation.getLang())xml:lang="$group.getLang()"#end><a class="anchor" href="#${observationName}_${group.Name}">a</a>$group.getTitle()</h3>					
+			<h3 class="title" #if($group.getLang()!=$observation.getLang())xml:lang="$group.getLang()"#end><a class="anchor" href="#${observationName}_${group.Name}">a</a>$group.getTitle()</h3>
 			<div class="block">
 				#if($group.getDescription())<p #if($group.getLang()!=$observation.getLang())xml:lang="$group.getLang()"#end>$group.getDescription()</p>#end
 				<div class="messages">
Received on Tuesday, 18 May 2010 09:54:37 UTC

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