| 1 | #set ($title = "$ucn.evaluate($lang, 'result_for', $unicorncall.DocumentName)") |
|---|
| 2 | #set ($css = ['base_ucn.css']) |
|---|
| 3 | #set ($js = ['mootools-1.2.3-core-nc.js', 'mootools-1.2.3.1-more.js', 'w3c_unicorn_results.js']) |
|---|
| 4 | #if ($unicorncall.isPassed()) |
|---|
| 5 | #set ($fav = "favicon_green.ico") |
|---|
| 6 | #else |
|---|
| 7 | #set ($fav = "favicon_red.ico") |
|---|
| 8 | #end |
|---|
| 9 | #parse('includes/head.vm') |
|---|
| 10 | |
|---|
| 11 | #set($observationList = $unicorncall.ObservationList) |
|---|
| 12 | |
|---|
| 13 | #if ($messages.size() > 0) |
|---|
| 14 | #displayMessages($messages) |
|---|
| 15 | #end |
|---|
| 16 | <div id="don_program"> |
|---|
| 17 | <script type="text/javascript" src="http://www.w3.org/QA/Tools/don_prog.js"></script> |
|---|
| 18 | <noscript> |
|---|
| 19 | <div><span id="don_program_img"> |
|---|
| 20 | <a href="http://www.w3.org/QA/Tools/Donate"> |
|---|
| 21 | <img alt="" src="http://www.w3.org/QA/Tools/I_heart_validator_lg" /> |
|---|
| 22 | </a> |
|---|
| 23 | </span> |
|---|
| 24 | <span id="don_program_text"> |
|---|
| 25 | The W3C validators rely on community support for hosting and development.<br /> |
|---|
| 26 | <a href="http://www.w3.org/QA/Tools/Donate">Donate</a> and help us build better tools for a better web. |
|---|
| 27 | </span></div> |
|---|
| 28 | </noscript> |
|---|
| 29 | </div> |
|---|
| 30 | <div id="observations"> |
|---|
| 31 | #foreach ($observationName in $observationList.keySet()) |
|---|
| 32 | #set ($observation = $observationList.get($observationName)) |
|---|
| 33 | #set ($infoCount = $observation.getInfoCount()) |
|---|
| 34 | #set ($errorCount = $observation.getErrorCount()) |
|---|
| 35 | #set ($warningCount = $observation.getWarningCount()) |
|---|
| 36 | <div class="observer section #if($observation.isPassed()) valid #else invalid #end" id="$observationName"> |
|---|
| 37 | <h2 class="title"> |
|---|
| 38 | <span class="icons"> |
|---|
| 39 | #if ($infoCount && $infoCount > 0)<a class="infos" href="#${observationName}_info" title="$info_label ($infoCount)"><span class="legend">$info_label</span><span class="count">$infoCount</span></a> #end |
|---|
| 40 | #if ($errorCount && $errorCount > 0)<a class="errors" href="#${observationName}_error" title="$error_label ($errorCount)"><span class="legend">$error_label</span><span class="count">$errorCount</span></a> #end |
|---|
| 41 | #if ($warningCount && $warningCount > 0)<a class="warnings" href="#${observationName}_warning" title="$warning_label ($warningCount)"><span class="legend">$warning_label</span><span class="count">$warningCount</span></a> #end |
|---|
| 42 | <a class="anchor smooth" href="#$observationName" title="$anchor_observation">a</a> |
|---|
| 43 | </span> |
|---|
| 44 | #if($observation.isPassed()) #set($ref = "test_ok") #else #set($ref = "test_fail") #end |
|---|
| 45 | $ucn.evaluate($lang, $ref, "<span class=\"name\">$unicorncall.getObserverName($observationName, $lang)#if($observation.isSetRating()) ($observation.Rating/100)#end</span>") |
|---|
| 46 | #if ($unicorncall.getInputMethod() == "URI") <a class="direct_link" href="$esc.html($observation.getHTMLRequestUri())" title="$direct_link_title_1">$direct_link_label</a> |
|---|
| 47 | #else <a class="direct_link" href="$esc.html($observation.getHTMLIndexUri())" title="$direct_link_title_2">$direct_link_label</a>#end |
|---|
| 48 | </h2> |
|---|
| 49 | |
|---|
| 50 | <div class="results block"> |
|---|
| 51 | #if ($observation.hasGroups()) |
|---|
| 52 | #foreach($group in $observation.getGroups()) #if (!$group.hasParent()) |
|---|
| 53 | <div class="section group"> |
|---|
| 54 | <h3 class="title">$group.getTitle()<a class="anchor">a</a></h3> |
|---|
| 55 | <div class="block"> |
|---|
| 56 | <p>$group.getDescription()</p> |
|---|
| 57 | <div class="messages"> |
|---|
| 58 | #set ($messages = $observation.getMessages($group.getName())) |
|---|
| 59 | #set ($a = true) |
|---|
| 60 | #foreach($message in $messages) |
|---|
| 61 | #if ($a) |
|---|
| 62 | <table> |
|---|
| 63 | <tbody> |
|---|
| 64 | #set ($a = false) |
|---|
| 65 | #end |
|---|
| 66 | #set ($uriCount = $velocityCount) |
|---|
| 67 | #set ($messageId = "${observationName}_error_${uriCount}_$velocityCount") |
|---|
| 68 | #set ($contextsCount = $message.getContexts().size()) |
|---|
| 69 | #set ($b = true) |
|---|
| 70 | #if ($contextsCount == 0) |
|---|
| 71 | <tr> |
|---|
| 72 | <td class="linenumber" title=""></td> |
|---|
| 73 | <td class="colnumber" title=""></td> |
|---|
| 74 | <td class="codeContext" title=""></td> |
|---|
| 75 | <td class="error" id="$messageId"> |
|---|
| 76 | <span class="msg">$!esc.html($message.Title)</span> |
|---|
| 77 | #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end |
|---|
| 78 | </td> |
|---|
| 79 | <td class="anchor"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> |
|---|
| 80 | </tr> |
|---|
| 81 | #else |
|---|
| 82 | #foreach($context in $message.getContexts()) |
|---|
| 83 | <tr> |
|---|
| 84 | <td class="linenumber" title="#if($context.Line)$line_token $context.Line#end">$!context.Line</td> |
|---|
| 85 | <td class="colnumber" title="#if($context.Column)$column_token $context.Column#end">$!context.Column</td> |
|---|
| 86 | <td class="codeContext" title="$context_token">$!esc.html($!{context.Context})</td> |
|---|
| 87 | |
|---|
| 88 | #if ($b) |
|---|
| 89 | #set ($b = false) |
|---|
| 90 | <td class="error" id="$messageId" rowspan="$message.getContexts().size()"> |
|---|
| 91 | <span class="msg">$!esc.html($message.Title)</span> |
|---|
| 92 | #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end |
|---|
| 93 | </td> |
|---|
| 94 | <td class="anchor" rowspan="$message.getContexts().size()"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> |
|---|
| 95 | #end |
|---|
| 96 | </tr> |
|---|
| 97 | #end |
|---|
| 98 | #end |
|---|
| 99 | #end |
|---|
| 100 | #if (!$a) |
|---|
| 101 | </tbody> |
|---|
| 102 | </table> |
|---|
| 103 | #end |
|---|
| 104 | </div> |
|---|
| 105 | |
|---|
| 106 | #foreach($group in $observation.getGroupChildren($group)) |
|---|
| 107 | <div class="section group"> |
|---|
| 108 | <h3 class="title">$group.getTitle()<a class="anchor">a</a></h3> |
|---|
| 109 | <div class="block"> |
|---|
| 110 | <p>$group.getDescription()</p> |
|---|
| 111 | <div class="messages"> |
|---|
| 112 | #set ($messages = $observation.getMessages($group.getName())) |
|---|
| 113 | #set ($a = true) |
|---|
| 114 | #foreach($message in $messages) |
|---|
| 115 | #if ($a) |
|---|
| 116 | <table> |
|---|
| 117 | <tbody> |
|---|
| 118 | #set ($a = false) |
|---|
| 119 | #end |
|---|
| 120 | #set ($uriCount = $velocityCount) |
|---|
| 121 | #set ($messageId = "${observationName}_error_${uriCount}_$velocityCount") |
|---|
| 122 | #set ($contextsCount = $message.getContexts().size()) |
|---|
| 123 | #set ($b = true) |
|---|
| 124 | #if ($contextsCount == 0) |
|---|
| 125 | <tr> |
|---|
| 126 | <td class="linenumber" title=""></td> |
|---|
| 127 | <td class="colnumber" title=""></td> |
|---|
| 128 | <td class="codeContext" title=""></td> |
|---|
| 129 | <td class="error" id="$messageId"> |
|---|
| 130 | <span class="msg">$!esc.html($message.Title)</span> |
|---|
| 131 | #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end |
|---|
| 132 | </td> |
|---|
| 133 | <td class="anchor"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> |
|---|
| 134 | </tr> |
|---|
| 135 | #else |
|---|
| 136 | #foreach($context in $message.getContexts()) |
|---|
| 137 | <tr> |
|---|
| 138 | <td class="linenumber" title="#if($context.Line)$line_token $context.Line#end">$!context.Line</td> |
|---|
| 139 | <td class="colnumber" title="#if($context.Column)$column_token $context.Column#end">$!context.Column</td> |
|---|
| 140 | <td class="codeContext" title="$context_token">$!esc.html($!{context.Context})</td> |
|---|
| 141 | |
|---|
| 142 | #if ($b) |
|---|
| 143 | #set ($b = false) |
|---|
| 144 | <td class="error" id="$messageId" rowspan="$message.getContexts().size()"> |
|---|
| 145 | <span class="msg">$!esc.html($message.Title)</span> |
|---|
| 146 | #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end |
|---|
| 147 | </td> |
|---|
| 148 | <td class="anchor" rowspan="$message.getContexts().size()"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> |
|---|
| 149 | #end |
|---|
| 150 | </tr> |
|---|
| 151 | #end |
|---|
| 152 | #end |
|---|
| 153 | #end |
|---|
| 154 | #if (!$a) |
|---|
| 155 | </tbody> |
|---|
| 156 | </table> |
|---|
| 157 | #end |
|---|
| 158 | </div> |
|---|
| 159 | </div> |
|---|
| 160 | </div> |
|---|
| 161 | #end |
|---|
| 162 | </div> |
|---|
| 163 | </div> |
|---|
| 164 | #end#end |
|---|
| 165 | |
|---|
| 166 | #else |
|---|
| 167 | |
|---|
| 168 | #if ($infoCount && $infoCount > 0) |
|---|
| 169 | <div class="section infos" id="${observationName}_info"> |
|---|
| 170 | <h3 class="title"> |
|---|
| 171 | <a class="smooth anchor" title="$anchor_uri" href="#${observationName}_info">a</a> |
|---|
| 172 | $info_label ($infoCount) |
|---|
| 173 | </h3> |
|---|
| 174 | <div class="block result"> |
|---|
| 175 | <table> |
|---|
| 176 | <tbody> |
|---|
| 177 | #set ($messages = $observation.getURISortedMessages(0)) |
|---|
| 178 | #foreach ($uri in $messages.keySet()) |
|---|
| 179 | #set ($uriCount = $velocityCount) |
|---|
| 180 | <tr> |
|---|
| 181 | <td colspan="4" class="uri" id="${observationName}_info_$uriCount"> |
|---|
| 182 | #if ($unicorncall.getInputMethod() == "URI")<span>$uri_token </span><a href="$esc.html($uri)">$esc.html($uri)</a>#end |
|---|
| 183 | #if ($unicorncall.getInputMethod() == "UPLOAD")<span>$file_token </span>$esc.html($uri)#end |
|---|
| 184 | #if ($unicorncall.getInputMethod() == "DIRECT")<span>$submitted_file</span>#end |
|---|
| 185 | </td> |
|---|
| 186 | <td class="anchor uri"><a class="smooth" title="$anchor_uri" href="#${observationName}_info_$uriCount">a</a></td> |
|---|
| 187 | </tr> |
|---|
| 188 | #foreach($message in $messages.get($uri)) |
|---|
| 189 | #set ($messageId = "${observationName}_info_${uriCount}_$velocityCount") |
|---|
| 190 | #set ($contextsCount = $message.getContexts().size()) |
|---|
| 191 | #set ($b = true) |
|---|
| 192 | #if ($contextsCount == 0) |
|---|
| 193 | <tr> |
|---|
| 194 | <td class="linenumber" title=""></td> |
|---|
| 195 | <td class="colnumber" title=""></td> |
|---|
| 196 | <td class="codeContext" title=""></td> |
|---|
| 197 | <td class="info" id="$messageId"> |
|---|
| 198 | <span class="msg">$!esc.html($message.Title)</span> |
|---|
| 199 | #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end |
|---|
| 200 | </td> |
|---|
| 201 | <td class="anchor"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> |
|---|
| 202 | </tr> |
|---|
| 203 | #else |
|---|
| 204 | #foreach($context in $message.getContexts()) |
|---|
| 205 | <tr> |
|---|
| 206 | <td class="linenumber" title="#if($context.Line)$line_token $context.Line#end">$!context.Line</td> |
|---|
| 207 | <td class="colnumber" title="#if($context.Column)$column_token $context.Column#end">$!context.Column</td> |
|---|
| 208 | <td class="codeContext" title="$context_token">$!esc.html($!{context.Context})</td> |
|---|
| 209 | |
|---|
| 210 | #if ($b) |
|---|
| 211 | #set ($b = false) |
|---|
| 212 | <td class="info" id="$messageId" rowspan="$message.getContexts().size()"> |
|---|
| 213 | <span class="msg">$!esc.html($message.Title)</span> |
|---|
| 214 | #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end |
|---|
| 215 | </td> |
|---|
| 216 | <td class="anchor" rowspan="$message.getContexts().size()"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> |
|---|
| 217 | #end |
|---|
| 218 | </tr> |
|---|
| 219 | #end |
|---|
| 220 | #end |
|---|
| 221 | #end |
|---|
| 222 | #end |
|---|
| 223 | </tbody> |
|---|
| 224 | </table> |
|---|
| 225 | </div> |
|---|
| 226 | </div> |
|---|
| 227 | #end |
|---|
| 228 | |
|---|
| 229 | #if ($errorCount && $errorCount > 0) |
|---|
| 230 | <div class="section errors" id="${observationName}_error"> |
|---|
| 231 | <h3 class="title"> |
|---|
| 232 | <a class="smooth anchor" title="$anchor_uri" href="#${observationName}_error">a</a> |
|---|
| 233 | $error_label ($errorCount) |
|---|
| 234 | </h3> |
|---|
| 235 | <div class="block result"> |
|---|
| 236 | <table> |
|---|
| 237 | <tbody> |
|---|
| 238 | #set ($messages = $observation.getURISortedMessages(2)) |
|---|
| 239 | #foreach ($uri in $messages.keySet()) |
|---|
| 240 | #set ($uriCount = $velocityCount) |
|---|
| 241 | <tr> |
|---|
| 242 | <td colspan="4" class="uri" id="${observationName}_error_$uriCount"> |
|---|
| 243 | #if ($unicorncall.getInputMethod() == "URI")<span>$uri_token </span><a href="$esc.html($uri)">$esc.html($uri)</a>#end |
|---|
| 244 | #if ($unicorncall.getInputMethod() == "UPLOAD")<span>$file_token </span>$esc.html($uri)#end |
|---|
| 245 | #if ($unicorncall.getInputMethod() == "DIRECT")<span>$submitted_file</span>#end |
|---|
| 246 | </td> |
|---|
| 247 | <td class="anchor uri"><a class="smooth" title="$anchor_uri" href="#${observationName}_error_$uriCount">a</a></td> |
|---|
| 248 | </tr> |
|---|
| 249 | #foreach($message in $messages.get($uri)) |
|---|
| 250 | #set ($messageId = "${observationName}_error_${uriCount}_$velocityCount") |
|---|
| 251 | #set ($contextsCount = $message.getContexts().size()) |
|---|
| 252 | #set ($b = true) |
|---|
| 253 | #if ($contextsCount == 0) |
|---|
| 254 | <tr> |
|---|
| 255 | <td class="linenumber" title=""></td> |
|---|
| 256 | <td class="colnumber" title=""></td> |
|---|
| 257 | <td class="codeContext" title=""></td> |
|---|
| 258 | <td class="error" id="$messageId"> |
|---|
| 259 | <span class="msg">$!esc.html($message.Title)</span> |
|---|
| 260 | #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end |
|---|
| 261 | </td> |
|---|
| 262 | <td class="anchor"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> |
|---|
| 263 | </tr> |
|---|
| 264 | #else |
|---|
| 265 | #foreach($context in $message.getContexts()) |
|---|
| 266 | <tr> |
|---|
| 267 | <td class="linenumber" title="#if($context.Line)$line_token $context.Line#end">$!context.Line</td> |
|---|
| 268 | <td class="colnumber" title="#if($context.Column)$column_token $context.Column#end">$!context.Column</td> |
|---|
| 269 | <td class="codeContext" title="$context_token">$!esc.html($!{context.Context})</td> |
|---|
| 270 | |
|---|
| 271 | #if ($b) |
|---|
| 272 | #set ($b = false) |
|---|
| 273 | <td class="error" id="$messageId" rowspan="$message.getContexts().size()"> |
|---|
| 274 | <span class="msg">$!esc.html($message.Title)</span> |
|---|
| 275 | #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end |
|---|
| 276 | </td> |
|---|
| 277 | <td class="anchor" rowspan="$message.getContexts().size()"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> |
|---|
| 278 | #end |
|---|
| 279 | </tr> |
|---|
| 280 | #end |
|---|
| 281 | #end |
|---|
| 282 | #end |
|---|
| 283 | #end |
|---|
| 284 | </tbody> |
|---|
| 285 | </table> |
|---|
| 286 | </div> |
|---|
| 287 | </div> |
|---|
| 288 | #end |
|---|
| 289 | |
|---|
| 290 | #if ($warningCount && $warningCount > 0) |
|---|
| 291 | <div class="section warnings" id="${observationName}_warning"> |
|---|
| 292 | <h3 class="title"> |
|---|
| 293 | <a class="smooth anchor" title="$anchor_uri" href="#${observationName}_warning">a</a> |
|---|
| 294 | $warning_label ($warningCount) |
|---|
| 295 | </h3> |
|---|
| 296 | <div class="block result"> |
|---|
| 297 | <table> |
|---|
| 298 | <tbody> |
|---|
| 299 | #set ($messages = $observation.getURISortedMessages(1)) |
|---|
| 300 | #foreach ($uri in $messages.keySet()) |
|---|
| 301 | #set ($uriCount = $velocityCount) |
|---|
| 302 | <tr> |
|---|
| 303 | <td colspan="4" class="uri" id="${observationName}_warning_$uriCount"> |
|---|
| 304 | #if ($unicorncall.getInputMethod() == "URI")<span>$uri_token </span><a href="$esc.html($uri)">$esc.html($uri)</a>#end |
|---|
| 305 | #if ($unicorncall.getInputMethod() == "UPLOAD")<span>$file_token </span>$esc.html($uri)#end |
|---|
| 306 | #if ($unicorncall.getInputMethod() == "DIRECT")<span>$submitted_file</span>#end |
|---|
| 307 | </td> |
|---|
| 308 | <td class="anchor uri"><a class="smooth" title="$anchor_uri" href="#${observationName}_warning_$uriCount">a</a></td> |
|---|
| 309 | </tr> |
|---|
| 310 | #foreach($message in $messages.get($uri)) |
|---|
| 311 | #set ($messageId = "${observationName}_warning_${uriCount}_$velocityCount") |
|---|
| 312 | #set ($contextsCount = $message.getContexts().size()) |
|---|
| 313 | #set ($b = true) |
|---|
| 314 | #if ($contextsCount == 0) |
|---|
| 315 | <tr> |
|---|
| 316 | <td class="linenumber" title=""></td> |
|---|
| 317 | <td class="colnumber" title=""></td> |
|---|
| 318 | <td class="codeContext" title=""></td> |
|---|
| 319 | <td class="warning" id="$messageId"> |
|---|
| 320 | <span class="msg">$!esc.html($message.Title)</span> |
|---|
| 321 | #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end |
|---|
| 322 | </td> |
|---|
| 323 | <td class="anchor"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> |
|---|
| 324 | </tr> |
|---|
| 325 | #else |
|---|
| 326 | #foreach($context in $message.getContexts()) |
|---|
| 327 | <tr> |
|---|
| 328 | <td class="linenumber" title="#if($context.Line)$line_token $context.Line#end">$!context.Line</td> |
|---|
| 329 | <td class="colnumber" title="#if($context.Column)$column_token $context.Column#end">$!context.Column</td> |
|---|
| 330 | <td class="codeContext" title="$context_token">$!esc.html($!{context.Context})</td> |
|---|
| 331 | |
|---|
| 332 | #if ($b) |
|---|
| 333 | #set ($b = false) |
|---|
| 334 | <td class="warning" id="$messageId" rowspan="$message.getContexts().size()"> |
|---|
| 335 | <span class="msg">$!esc.html($message.Title)</span> |
|---|
| 336 | #if($message.Description && $message.Description != "")<div class="description">$!message.Description</div>#end |
|---|
| 337 | </td> |
|---|
| 338 | <td class="anchor" rowspan="$message.getContexts().size()"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> |
|---|
| 339 | #end |
|---|
| 340 | </tr> |
|---|
| 341 | #end |
|---|
| 342 | #end |
|---|
| 343 | #end |
|---|
| 344 | #end |
|---|
| 345 | </tbody> |
|---|
| 346 | </table> |
|---|
| 347 | </div> |
|---|
| 348 | </div> |
|---|
| 349 | #end |
|---|
| 350 | |
|---|
| 351 | #end |
|---|
| 352 | </div> |
|---|
| 353 | </div> |
|---|
| 354 | #end |
|---|
| 355 | </div> |
|---|
| 356 | #parse('includes/footer.vm') |
|---|