| 1 | #if($unicorncall.DocumentName) |
|---|
| 2 | #set ($noEscape_title = "$result_for $unicorncall.DocumentName") |
|---|
| 3 | #else |
|---|
| 4 | #set ($noEscape_title = $result_for_upload) |
|---|
| 5 | #end |
|---|
| 6 | #set ($css = ['base_ucn.css']) |
|---|
| 7 | #set ($js = ['scripts/mootools-1.2.3-core-nc.js', 'scripts/mootools-1.2.3.1-more.js', 'scripts/w3c_unicorn_results.js']) |
|---|
| 8 | #if ($unicorncall.isPassed()) |
|---|
| 9 | #set ($fav = "favicon_green.ico") |
|---|
| 10 | #else |
|---|
| 11 | #set ($fav = "favicon_red.ico") |
|---|
| 12 | #end |
|---|
| 13 | #parse('includes/head.vm') |
|---|
| 14 | |
|---|
| 15 | #set($observationList = $unicorncall.ObservationList) |
|---|
| 16 | |
|---|
| 17 | #if ($messages.size() > 0) |
|---|
| 18 | #displayMessages($messages) |
|---|
| 19 | #end |
|---|
| 20 | <div id="don_program"> |
|---|
| 21 | <script type="text/javascript" src="http://www.w3.org/QA/Tools/don_prog.js"></script> |
|---|
| 22 | <noscript> |
|---|
| 23 | <div><span id="don_program_img"> |
|---|
| 24 | <a href="http://www.w3.org/QA/Tools/Donate"> |
|---|
| 25 | <img alt="" src="http://www.w3.org/QA/Tools/I_heart_validator_lg" /> |
|---|
| 26 | </a> |
|---|
| 27 | </span> |
|---|
| 28 | <span id="don_program_text"> |
|---|
| 29 | The W3C validators rely on community support for hosting and development.<br /> |
|---|
| 30 | <a href="http://www.w3.org/QA/Tools/Donate">Donate</a> and help us build better tools for a better web. |
|---|
| 31 | </span></div> |
|---|
| 32 | </noscript> |
|---|
| 33 | </div> |
|---|
| 34 | <div id="observations"> |
|---|
| 35 | #foreach ($observationName in $observationList.keySet()) |
|---|
| 36 | #set ($observation = $observationList.get($observationName)) |
|---|
| 37 | #set ($infoCount = $observation.getInfoCount()) |
|---|
| 38 | #set ($errorCount = $observation.getErrorCount()) |
|---|
| 39 | #set ($warningCount = $observation.getWarningCount()) |
|---|
| 40 | <div class="observer section #if($observation.isPassed()) valid #else invalid #end" id="$observationName"> |
|---|
| 41 | <h2 class="title"> |
|---|
| 42 | <span class="icons"> |
|---|
| 43 | #if ($infoCount && $infoCount > 0)<a class="infos"><span>Infos:</span>$infoCount</a> #end |
|---|
| 44 | #if ($errorCount && $errorCount > 0)<a class="errors"><span>Errors:</span>$errorCount</a> #end |
|---|
| 45 | #if ($warningCount && $warningCount > 0)<a class="warnings"><span>Warnings:</span>$warningCount</a> #end |
|---|
| 46 | <a class="anchor smooth" href="#$observationName" title="anchor to this observation">[anchor]</a> |
|---|
| 47 | </span> |
|---|
| 48 | #if($observation.isPassed()) |
|---|
| 49 | $test_ok_1 |
|---|
| 50 | #else |
|---|
| 51 | $test_fail_1 |
|---|
| 52 | #end |
|---|
| 53 | <span class="name">$unicorncall.getObserverName($observationName, $lang) #if ($observation.getRating()) ($observation.getRating()/100) #end</span> |
|---|
| 54 | #if ($observation.getRequestUri())<a class="direct_link" href="$observation.getRequestUri()" title="revalidate this document on the validator website">[direct link]</a> |
|---|
| 55 | #else <a class="direct_link" href="$observation.getCallingURI()" title="link to this validator website">[direct link]</a>#end |
|---|
| 56 | </h2> |
|---|
| 57 | |
|---|
| 58 | <div class="results block"> |
|---|
| 59 | #if ($infoCount && $infoCount > 0) |
|---|
| 60 | <div class="section infos" id="${observationName}_info"> |
|---|
| 61 | <h3 class="title"> |
|---|
| 62 | <a class="smooth anchor" title="anchor to this uri" href="#${observationName}_info">[anchor]</a> |
|---|
| 63 | Infos ($infoCount) |
|---|
| 64 | </h3> |
|---|
| 65 | <div class="block result"> |
|---|
| 66 | <table> |
|---|
| 67 | <tbody> |
|---|
| 68 | #set ($i = 0) |
|---|
| 69 | #foreach($result in $observation.getResultsList()) |
|---|
| 70 | #if(!$result.Infos.isEmpty()) |
|---|
| 71 | #set ($i = $i + 1) |
|---|
| 72 | <tr> |
|---|
| 73 | <td colspan="4" class="uri" id="${observationName}_info_${i}"> |
|---|
| 74 | #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end |
|---|
| 75 | #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end |
|---|
| 76 | #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end |
|---|
| 77 | </td> |
|---|
| 78 | <td class="anchor uri"><a class="smooth" title="anchor to this uri" href="#${observationName}_info_${i}">[anchor]</a></td> |
|---|
| 79 | </tr> |
|---|
| 80 | #foreach($info in $result.Infos) |
|---|
| 81 | #set ($messageId = "${observationName}_info_${i}_$velocityCount") |
|---|
| 82 | <tr> |
|---|
| 83 | <td class="linenumber" title="#if($info.Line)Line:$info.Line#end">#if($info.Line)$info.Line#end</td> |
|---|
| 84 | <td class="colnumber" title="#if($info.Column)Column:$info.Column#end">#if($info.Column)$info.Column #end</td> |
|---|
| 85 | <td class="codeContext"> #if($info.Context) $info.Context #end </td> |
|---|
| 86 | <td class="info" id="$messageId"> |
|---|
| 87 | #foreach($message in $info.Message)<span class="msg">$message</span>#end |
|---|
| 88 | #foreach($longMessage in $info.Longmessage) |
|---|
| 89 | <p class="longmsg"> |
|---|
| 90 | #foreach($longMessagePiece in $longMessage.Content) |
|---|
| 91 | $longMessagePiece |
|---|
| 92 | #end |
|---|
| 93 | </p> |
|---|
| 94 | #end |
|---|
| 95 | </td> |
|---|
| 96 | <td class="anchor"><a class="smooth" title="anchor to this message" href="#$messageId">[anchor]</a></td> |
|---|
| 97 | </tr> |
|---|
| 98 | #end |
|---|
| 99 | #end |
|---|
| 100 | #end |
|---|
| 101 | </tbody> |
|---|
| 102 | </table> |
|---|
| 103 | </div> |
|---|
| 104 | </div> |
|---|
| 105 | #end |
|---|
| 106 | |
|---|
| 107 | #if ($errorCount && $errorCount > 0) |
|---|
| 108 | <div class="section errors" id="${observationName}_error"> |
|---|
| 109 | <h3 class="title"> |
|---|
| 110 | <a class="smooth anchor" title="anchor to this uri" href="#${observationName}_error">[anchor]</a> |
|---|
| 111 | Errors ($errorCount) |
|---|
| 112 | </h3> |
|---|
| 113 | <div class="block result"> |
|---|
| 114 | <table> |
|---|
| 115 | <tbody> |
|---|
| 116 | #set ($i = 0) |
|---|
| 117 | #foreach($result in $observation.getResultsList()) |
|---|
| 118 | #if (!$result.Errors.isEmpty()) |
|---|
| 119 | #set ($i = $i + 1) |
|---|
| 120 | <tr> |
|---|
| 121 | <td colspan="4" class="uri" id="${observationName}_error_${i}"> |
|---|
| 122 | #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end |
|---|
| 123 | #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end |
|---|
| 124 | #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end |
|---|
| 125 | </td> |
|---|
| 126 | <td class="anchor uri"><a class="smooth" title="anchor to this uri" href="#${observationName}_error_${i}">[anchor]</a></td> |
|---|
| 127 | </tr> |
|---|
| 128 | #foreach($error in $result.Errors) |
|---|
| 129 | #set ($messageId = "${observationName}_error_${i}_$velocityCount") |
|---|
| 130 | <tr> |
|---|
| 131 | <td class="linenumber" title="#if($error.Line)Line: $error.Line#end">#if($error.Line)$error.Line#end</td> |
|---|
| 132 | <td class="colnumber" title="#if($error.Column)Column: $error.Column#end">#if($error.Column)$error.Column #end</td> |
|---|
| 133 | <td class="codeContext">#if($error.Context) $error.Context #end</td> |
|---|
| 134 | <td class="error" id="$messageId"> |
|---|
| 135 | #foreach($message in $error.Message)<span class="msg">$message</span>#end |
|---|
| 136 | #foreach($longMessage in $error.Longmessage) |
|---|
| 137 | <p class="longmsg"> |
|---|
| 138 | #foreach($longMessagePiece in $longMessage.Content) |
|---|
| 139 | $longMessagePiece |
|---|
| 140 | #end |
|---|
| 141 | </p> |
|---|
| 142 | #end |
|---|
| 143 | </td> |
|---|
| 144 | <td class="anchor"><a class="smooth" title="anchor to this message" href="#$messageId">[anchor]</a></td> |
|---|
| 145 | </tr> |
|---|
| 146 | #end |
|---|
| 147 | #end |
|---|
| 148 | #end |
|---|
| 149 | </tbody> |
|---|
| 150 | </table> |
|---|
| 151 | </div> |
|---|
| 152 | </div> |
|---|
| 153 | #end |
|---|
| 154 | |
|---|
| 155 | #if ($warningCount && $warningCount > 0) |
|---|
| 156 | <div class="section warnings" id="${observationName}_warning"> |
|---|
| 157 | <h3 class="title"> |
|---|
| 158 | <a class="smooth anchor" title="anchor to this uri" href="#${observationName}_warning">[anchor]</a> |
|---|
| 159 | Warnings ($warningCount) |
|---|
| 160 | </h3> |
|---|
| 161 | <div class="block result"> |
|---|
| 162 | <table> |
|---|
| 163 | <tbody> |
|---|
| 164 | #set ($i = 0) |
|---|
| 165 | #foreach($result in $observation.getResultsList()) |
|---|
| 166 | #if(!$result.Warnings.isEmpty()) |
|---|
| 167 | #set ($i = $i + 1) |
|---|
| 168 | <tr> |
|---|
| 169 | <td colspan="4" class="uri" id="${observationName}_warning_${i}"> |
|---|
| 170 | #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end |
|---|
| 171 | #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end |
|---|
| 172 | #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end |
|---|
| 173 | </td> |
|---|
| 174 | <td class="anchor uri"><a class="smooth" title="anchor to this uri" href="#${observationName}_warning_${i}">[anchor]</a></td> |
|---|
| 175 | </tr> |
|---|
| 176 | #foreach($warning in $result.Warnings) |
|---|
| 177 | #set ($messageId = "${observationName}_warning_${i}_$velocityCount") |
|---|
| 178 | <tr> |
|---|
| 179 | <td class="linenumber" title="#if($warning.Line)Line: $warning.Line#end">#if($warning.Line)$warning.Line#end</td> |
|---|
| 180 | <td class="colnumber" title="#if($warning.Column)Column: $warning.Column#end">#if($warning.Column)$warning.Column #end</td> |
|---|
| 181 | <td class="codeContext">#if($warning.Context) $warning.Context #end</td> |
|---|
| 182 | <td class="warning level$warning.getLevel()" id="$messageId"> |
|---|
| 183 | #foreach($message in $warning.Message)<span class="msg">$message</span>#end |
|---|
| 184 | #foreach($longMessage in $warning.Longmessage) |
|---|
| 185 | <p class="longmsg"> |
|---|
| 186 | #foreach($longMessagePiece in $longMessage.Content) |
|---|
| 187 | $longMessagePiece |
|---|
| 188 | #end |
|---|
| 189 | </p> |
|---|
| 190 | #end |
|---|
| 191 | </td> |
|---|
| 192 | <td class="anchor"><a class="smooth" title="anchor to this message" href="#$messageId">[anchor]</a></td> |
|---|
| 193 | </tr> |
|---|
| 194 | #end |
|---|
| 195 | #end |
|---|
| 196 | #end |
|---|
| 197 | </tbody> |
|---|
| 198 | </table> |
|---|
| 199 | </div> |
|---|
| 200 | </div> |
|---|
| 201 | #end |
|---|
| 202 | </div> |
|---|
| 203 | </div> |
|---|
| 204 | #end |
|---|
| 205 | </div> |
|---|
| 206 | #parse( 'includes/footer.vm' ) |
|---|