- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 22 Oct 2009 14:46:51 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates In directory hutz:/tmp/cvs-serv27501/WebContent/WEB-INF/resources/templates Modified Files: xhtml10.vm Log Message: fixed grouped messages did not display type icon anymore Index: xhtml10.vm =================================================================== RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/xhtml10.vm,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- xhtml10.vm 22 Oct 2009 12:58:05 -0000 1.42 +++ xhtml10.vm 22 Oct 2009 14:46:49 -0000 1.43 @@ -74,19 +74,22 @@ #foreach ($message in $messages.get($uri)) #if($message.getType()==2)#set($type="error")#elseif($message.getType()==1)#set($type="warning")#else#set($type="info")#end #set ($messageId = "${observationName}_${group.Name}_${uriCount}_$velocityCount") - #set ($contextsCount = $message.getContexts().size()) - #if ($contextsCount == 0) + #if ($message.getContexts().size() == 0) <tr> <td class="linenumber" title=""></td> <td class="colnumber" title=""></td> <td class="codeContext" title="$context_token"></td> <td class="info level$message.Level message" id="$messageId"> - <span class="msg">$!esc.html($message.Title)</span> + <span class="msg#if($message.Description && $message.Description != "") desc#end"> + <span class="$type legend">$type</span> + $!esc.html($message.Title) + </span> #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end </td> <td class="anchor"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> </tr> #else + #set ($b = true) #set ($rowspan = $message.getContexts().size()) #foreach($context in $message.getContexts()) <tr> @@ -96,14 +99,16 @@ #if($context.URI && $context.URI != $uri) <a class="direct_link" href="$context.URI" title="$context.URI">link</a> #end $!esc.html($!{context.Context}) </td> - #if ($b) #set ($b = false) - <td class="info level$message.Level message" id="$messageId" #if($rowspan>1) rowspan="$rowspan" #end> - <span class="msg">$!esc.html($message.Title)</span> + <td class="info level$message.Level message" id="$messageId" #if($rowspan>1)rowspan="$rowspan"#end> + <span class="msg#if($message.Description && $message.Description != "") desc#end"> + <span class="$type legend">$type</span> + $!esc.html($message.Title) + </span> #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end </td> - <td class="anchor" #if($rowspan>1) rowspan="$rowspan" #end><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> + <td class="anchor" #if($rowspan>1)rowspan="$rowspan"#end><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> #end </tr> #end @@ -138,19 +143,22 @@ #foreach ($message in $messages.get($uri)) #if($message.getType()==2)#set($type="error")#elseif($message.getType()==1)#set($type="warning")#else#set($type="info")#end #set ($messageId = "${observationName}_${group.Name}_${uriCount}_$velocityCount") - #set ($contextsCount = $message.getContexts().size()) - #if ($contextsCount == 0) + #if ($message.getContexts().size() == 0) <tr> <td class="linenumber" title=""></td> <td class="colnumber" title=""></td> <td class="codeContext" title="$context_token"></td> <td class="info level$message.Level message" id="$messageId"> - <span class="msg">$!esc.html($message.Title)</span> + <span class="msg#if($message.Description && $message.Description != "") desc#end"> + <span class="$type legend">$type</span> + $!esc.html($message.Title) + </span> #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end </td> <td class="anchor"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> </tr> #else + #set ($b = true) #set ($rowspan = $message.getContexts().size()) #foreach($context in $message.getContexts()) <tr> @@ -160,11 +168,13 @@ #if($context.URI && $context.URI != $uri) <a class="direct_link" href="$context.URI" title="$context.URI">link</a> #end $!esc.html($!{context.Context}) </td> - #if ($b) #set ($b = false) <td class="info level$message.Level message" id="$messageId" #if($rowspan>1) rowspan="$rowspan" #end> - <span class="msg">$!esc.html($message.Title)</span> + <span class="msg#if($message.Description && $message.Description != "") desc#end"> + <span class="$type legend">$type</span> + $!esc.html($message.Title) + </span> #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end </td> <td class="anchor" #if($rowspan>1) rowspan="$rowspan" #end><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> @@ -209,9 +219,7 @@ </tr> #foreach($message in $messages.get($uri)) #set ($messageId = "${observationName}_info_${uriCount}_$velocityCount") - #set ($contextsCount = $message.getContexts().size()) - #set ($b = true) - #if ($contextsCount == 0) + #if ($message.getContexts().size() == 0) <tr> <td class="linenumber" title=""></td> <td class="colnumber" title=""></td> @@ -223,6 +231,7 @@ <td class="anchor"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> </tr> #else + #set ($b = true) #set ($rowspan = $message.getContexts().size()) #foreach($context in $message.getContexts()) <tr> @@ -274,9 +283,7 @@ </tr> #foreach($message in $messages.get($uri)) #set ($messageId = "${observationName}_error_${uriCount}_$velocityCount") - #set ($contextsCount = $message.getContexts().size()) - #set ($b = true) - #if ($contextsCount == 0) + #if ($message.getContexts().size() == 0) <tr> <td class="linenumber" title=""></td> <td class="colnumber" title=""></td> @@ -288,6 +295,7 @@ <td class="anchor"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> </tr> #else + #set ($b = true) #set ($rowspan = $message.getContexts().size()) #foreach($context in $message.getContexts()) <tr> @@ -297,7 +305,6 @@ #if($context.URI && $context.URI != $uri) <a class="direct_link" href="$context.URI" title="$context.URI">link</a> #end $!esc.html($!{context.Context}) </td> - #if ($b) #set ($b = false) <td class="info level$message.Level message" id="$messageId" #if($rowspan>1) rowspan="$rowspan" #end> @@ -339,9 +346,7 @@ </tr> #foreach($message in $messages.get($uri)) #set ($messageId = "${observationName}_warning_${uriCount}_$velocityCount") - #set ($contextsCount = $message.getContexts().size()) - #set ($b = true) - #if ($contextsCount == 0) + #if ($message.getContexts().size() == 0) <tr> <td class="linenumber" title=""></td> <td class="colnumber" title=""></td> @@ -353,6 +358,7 @@ <td class="anchor"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> </tr> #else + #set ($b = true) #set ($rowspan = $message.getContexts().size()) #foreach($context in $message.getContexts()) <tr> @@ -362,7 +368,6 @@ #if($context.URI && $context.URI != $uri) <a class="direct_link" href="$context.URI" title="$context.URI">link</a> #end $!esc.html($!{context.Context}) </td> - #if ($b) #set ($b = false) <td class="info level$message.Level message" id="$messageId" #if($rowspan>1) rowspan="$rowspan" #end> @@ -381,7 +386,6 @@ </div> </div> #end - #end </div> </div>
Received on Thursday, 22 October 2009 14:46:55 UTC